# Generate responses using an agent Accepts chat history input and streams agent-generated responses in NDJSON format. Endpoint: POST /v1/plannings/{id}/agent/ Version: 1.0.0 Security: tokenAuth ## Path parameters: - `id` (string, required) ## Request fields (application/json): - `chat_history` (array, required) - `chat_history.type` (string, required) - `chat_history.content` (string, required) - `virtual_state` (any, required) ## Response 400 fields (application/json): - `detail` (string, required) ## Response 500 fields (application/json): - `detail` (string, required)