chat
Stream Chat
Streaming chat endpoint using Server-Sent Events (SSE).
History is loaded server-side from the chat_id to prevent prompt injection via client-controlled history. The client only sends the new message and the chat_id.
This endpoint enables an agentic conversation where the AI can:
- Explore and search data sources
- Generate insights and visualizations
- Plan and create dashboards
The response is streamed as SSE events with the following types:
- text_delta: Partial text from the assistant
- tool_start: Tool execution starting
- tool_result: Tool execution completed with result
- error: An error occurred
- done: Stream complete
post/chat/stream
Request
- Base URL: https://api.pandas-ai.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pandas-ai.com/chat/stream
- Auth: none declared
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.