Agents
Use natural language to write quantum algorithms and learn quantum computing.
The agents endpoint connects you to Coda’s AI agents, which can write quantum algorithms, generate and optimise circuits, explain concepts, and assist with quantum computing workflows. Responses are streamed back as server-sent events (SSE).
Modes
Example
The response is streamed. Each event contains a type field (content, tool_call, completed, or error) and associated data.
Conversation threads
Pass a thread_id to continue a previous conversation:
The X-Thread-Id response header contains the thread ID for new conversations.
Fast mode
Set "fast": true for lower latency responses using a faster model. This trades some response quality for speed.
Related endpoints
POST /agents: chat with a Coda AI agent
See the Coda API Reference for full request and response schemas.