CitraClient.Chat (citra_client v0.3.0)
View SourceGenerated operations for OpenAPI tag chat.
Summary
Functions
Create Chat Feedback
Create Conversation
Delete Conversation
Get Conversation Messages
List Conversations
Post Message Stream
Functions
Create Chat Feedback
Submit feedback for a message in a conversation.
POST /my/conversation/{conversation_id}/feedback
Path parameters
conversation_id(path)
Body
Request body (map or generated struct).
Create Conversation
Create a new conversation for the authenticated user.
POST /my/conversation
Body
Request body (map or generated struct).
Delete Conversation
Delete a conversation and all its messages for the authenticated user.
DELETE /my/conversation/{conversation_id}
Path parameters
conversation_id(path)
Get Conversation Messages
Get all messages for a specific conversation.
GET /my/conversation/{conversation_id}/messages
Path parameters
conversation_id(path)
List Conversations
List all conversations for the authenticated user.
GET /my/conversation
Options (passed via keyword list)
:limit:offset
Post Message Stream
Add a message to a conversation and stream progress events via SSE.
Events:
- {"event": "phase", "data": "query"} - Query phase started
- {"event": "tool", "data": "tool_name"} - Tool being called
- {"event": "phase", "data": "verify"} - Verification phase started
- {"event": "complete", "data": {...}} - Final response
- {"event": "error", "data": {...}} - Error occurred
POST /my/conversation/{conversation_id}/messages/stream
Path parameters
conversation_id(path)
Body
Request body (map or generated struct).