Documentation Index
Fetch the complete documentation index at: https://mintlify.com/operatoronline/weaver/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Request Headers
Must be
application/jsonRequest Body
The message text to send to the AI agent
Unique identifier for the conversation session. Use the same session key to maintain conversation context across multiple requests.
The channel identifier for routing and logging purposes
Chat or user identifier within the channel
Configuration for image generation and other media tasks. Format depends on the specific media tool being invoked.
Array of attachment objects with metadata
Desired MIME type for the response (e.g.,
image/png for image generation)Response Fields
The AI agent’s text response to the message
Array of UI commands that can be executed by the client interface
URL or data URI of generated media content (images, etc.)
Error message if the request failed (empty on success)
Example: Basic Chat
Response
Example: Continued Conversation
Response
Example: Image Generation
Response
Example: Error Response
Response
Implementation Details
The chat endpoint is implemented in/home/daytona/workspace/source/pkg/health/server.go:171 and processes messages through the agent loop, supporting:
- Session-based conversation context
- Multi-channel routing (REST, Telegram, Slack, etc.)
- Media generation and attachments
- UI command execution
- Custom response MIME types
Session Management
Conversation context is maintained using thesession_key parameter. Use the same session key across requests to:
- Maintain conversation history
- Preserve agent state
- Enable context-aware responses
Timeout Considerations
The/chat endpoint has a 5-minute (300 second) timeout to accommodate long-running AI operations such as:
- Complex code generation
- Large data processing tasks
- Image generation
- Multi-step agent orchestration