sessions
chat
Chat
Initiates a chat session.
Routes to different implementations based on feature flags:
- If auto_run_tools_chat feature flag is enabled, uses the new auto-tools implementation
- Otherwise, uses the legacy implementation
Parameters: developer (Developer): The developer associated with the chat session. session_id (UUID): The unique identifier of the chat session. chat_input (ChatInput): The chat input data. background_tasks (BackgroundTasks): The background tasks to run. x_custom_api_key (Optional[str]): The custom API key. mock_response (Optional[str]): Mock response for testing. connection_pool: Connection pool for testing purposes.
Returns: ChatResponse or StreamingResponse: The chat response or streaming response.
post/sessions/{session_id}/chat
Path parameters
session_idstring uuid required
Query parameters
{"stackTrail":"paths:/sessions/{session_id}/chat:post:parameters:1:schema","oasType":"schema","type":"unknown","title":"Connection Pool"}
Headers
X-Custom-Api-Keystring nullable
Request body
Response
Successful Response