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).
The response is streamed. Each event contains a type field (content, tool_call, completed, or error) and associated data.
Pass a thread_id to continue a previous conversation:
The X-Thread-Id response header contains the thread ID for new conversations.
Set "fast": true for lower latency responses using a faster model. This trades some response quality for speed.
POST /agents: chat with a Coda AI agentGET /agents: list available agent modesSee the Coda API Reference for full request and response schemas.