{"components":{"schemas":{"AgentRunRequest":{"additionalProperties":false,"description":"Starts a bounded asynchronous run. session_id and a nonempty caller-supplied history are mutually exclusive. Provider, built-in tool, permission, memory, and generation selections apply per run.","properties":{"generation":{"$ref":"#/components/schemas/Generation"},"history":{"description":"At most 64 messages and 196608 UTF-8 bytes of content in total. Defaults to empty.","items":{"$ref":"#/components/schemas/HistoryMessage"},"maxItems":64,"type":"array"},"max_tokens":{"default":4096,"maximum":16384,"minimum":1,"nullable":true,"type":"integer"},"max_turns":{"default":20,"maximum":100,"minimum":1,"nullable":true,"type":"integer"},"model":{"maxLength":256,"minLength":1,"nullable":true,"type":"string"},"prompt":{"description":"Nonblank, maximum 65536 UTF-8 bytes.","maxLength":65536,"minLength":1,"type":"string"},"provider":{"description":"Omit or use default. Select the upstream provider with X-Jeus-Provider.","enum":["default"],"nullable":true,"type":"string"},"runtime":{"$ref":"#/components/schemas/RuntimeOptions"},"session_id":{"description":"Filesystem-backed IDs additionally reject reserved device names.","maxLength":64,"minLength":1,"nullable":true,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"system_prompt":{"description":"Nonblank, maximum 16384 UTF-8 bytes. Omit for the default.","maxLength":16384,"minLength":1,"nullable":true,"type":"string"},"timeout_seconds":{"default":300,"maximum":600,"minimum":1,"nullable":true,"type":"integer"},"tools":{"default":[],"description":"Unique names; combined input schemas at most 131072 serialized UTF-8 bytes.","items":{"$ref":"#/components/schemas/ToolDefinition"},"maxItems":64,"minItems":0,"type":"array"}},"required":["prompt"],"type":"object"},"AgentRunStatus":{"additionalProperties":false,"properties":{"error":{"properties":{"code":{"enum":["unauthorized","invalid_request","payload_too_large","unsupported_media_type","busy","upstream_error","timeout","internal_error","not_found","conflict","max_turns_exceeded","run_capacity"],"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"id":{"format":"uuid","type":"string"},"output":{"type":"string"},"pending_permissions":{"items":{"$ref":"#/components/schemas/PendingPermission"},"type":"array"},"pending_tool_calls":{"items":{"$ref":"#/components/schemas/PendingToolCall"},"type":"array"},"status":{"enum":["queued","running","waiting_for_tools","completed","failed","cancelled","waiting_for_permission"],"type":"string"},"stop_reason":{"enum":["end_turn","max_tokens","tool_use","stop_sequence","content_filter"],"type":"string"},"turns":{"description":"Number of parent agent turns; does not sum child-agent turns or extra compaction requests.","type":"integer"},"usage":{"$ref":"#/components/schemas/Usage"}},"required":["id","status","pending_tool_calls"],"type":"object"},"Condition":{"oneOf":[{"enum":["always"],"type":"string"},{"additionalProperties":false,"properties":{"eq":{"additionalProperties":false,"properties":{"path":{"type":"string"},"value":{"description":"Any JSON value."}},"required":["path","value"],"type":"object"}},"required":["eq"],"type":"object"},{"additionalProperties":false,"properties":{"ne":{"additionalProperties":false,"properties":{"path":{"type":"string"},"value":{"description":"Any JSON value."}},"required":["path","value"],"type":"object"}},"required":["ne"],"type":"object"},{"additionalProperties":false,"properties":{"gt":{"additionalProperties":false,"properties":{"path":{"type":"string"},"value":{"type":"number"}},"required":["path","value"],"type":"object"}},"required":["gt"],"type":"object"},{"additionalProperties":false,"properties":{"lt":{"additionalProperties":false,"properties":{"path":{"type":"string"},"value":{"type":"number"}},"required":["path","value"],"type":"object"}},"required":["lt"],"type":"object"},{"additionalProperties":false,"properties":{"exists":{"additionalProperties":false,"properties":{"path":{"type":"string"}},"required":["path"],"type":"object"}},"required":["exists"],"type":"object"},{"additionalProperties":false,"properties":{"truthy":{"additionalProperties":false,"properties":{"path":{"type":"string"}},"required":["path"],"type":"object"}},"required":["truthy"],"type":"object"},{"additionalProperties":false,"properties":{"and":{"items":{"$ref":"#/components/schemas/Condition"},"type":"array"}},"required":["and"],"type":"object"},{"additionalProperties":false,"properties":{"or":{"items":{"$ref":"#/components/schemas/Condition"},"type":"array"}},"required":["or"],"type":"object"},{"additionalProperties":false,"properties":{"not":{"$ref":"#/components/schemas/Condition"}},"required":["not"],"type":"object"}]},"EdgeKind":{"oneOf":[{"enum":["then","fork","merge","loop_back"],"type":"string"},{"additionalProperties":false,"properties":{"when":{"additionalProperties":false,"properties":{"condition":{"$ref":"#/components/schemas/Condition"}},"required":["condition"],"type":"object"}},"required":["when"],"type":"object"}]},"Error":{"properties":{"error":{"properties":{"code":{"enum":["unauthorized","invalid_request","payload_too_large","unsupported_media_type","busy","upstream_error","timeout","internal_error","not_found","max_turns_exceeded","job_capacity","invalid_tool_result","resource_limit"],"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"},"Generation":{"additionalProperties":false,"properties":{"auto_compact":{"default":false,"type":"boolean"},"coding_hints":{"default":false,"type":"boolean"},"compact_threshold":{"maximum":0.95,"minimum":0.1,"nullable":true,"type":"number"},"compression":{"default":"off","enum":["off","minimal","aggressive"],"type":"string"},"reasoning_effort":{"enum":["low","medium","high","max"],"nullable":true,"type":"string"},"temperature":{"maximum":2,"minimum":0,"nullable":true,"type":"number"},"thinking_budget":{"maximum":32768,"minimum":1024,"nullable":true,"type":"integer"},"tool_result_budget":{"maximum":200000,"minimum":1024,"nullable":true,"type":"integer"}},"type":"object"},"GraphRecall":{"additionalProperties":false,"properties":{"limit":{"default":10,"maximum":100,"minimum":1,"type":"integer"},"query":{"maxLength":4096,"minLength":1,"type":"string"}},"required":["query"],"type":"object"},"GraphSearch":{"additionalProperties":false,"description":"Provide exactly one nonnull selector: query, topic, or memory_type.","properties":{"limit":{"default":10,"maximum":100,"minimum":1,"type":"integer"},"memory_type":{"enum":["user","feedback","project","reference"],"nullable":true,"type":"string"},"query":{"maxLength":4096,"minLength":1,"nullable":true,"type":"string"},"topic":{"description":"Filesystem-backed IDs additionally reject reserved device names.","maxLength":64,"minLength":1,"nullable":true,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"type":"object"},"GraphWrite":{"additionalProperties":false,"properties":{"confidence":{"default":0.9,"maximum":1,"minimum":0,"type":"number"},"content":{"maxLength":65536,"minLength":1,"type":"string"},"memory_type":{"enum":["user","feedback","project","reference"],"type":"string"}},"required":["content","memory_type"],"type":"object"},"HistoryMessage":{"additionalProperties":false,"properties":{"content":{"description":"Nonblank, maximum 65536 UTF-8 bytes.","maxLength":65536,"minLength":1,"type":"string"},"role":{"enum":["user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"LoopMode":{"oneOf":[{"enum":["do_while","do_until"],"type":"string"},{"additionalProperties":false,"properties":{"for_each":{"additionalProperties":false,"properties":{"concurrency":{"maximum":8,"minimum":1,"type":"integer"}},"required":["concurrency"],"type":"object"}},"required":["for_each"],"type":"object"}]},"MemoryFile":{"additionalProperties":false,"properties":{"content":{"type":"string"},"description":{"nullable":true,"type":"string"},"memory_type":{"enum":["user","feedback","project","reference"],"nullable":true,"type":"string"},"name":{"type":"string"}},"required":["name","content","memory_type","description"],"type":"object"},"NodeKind":{"oneOf":[{"enum":["parallel","branch"],"type":"string"},{"additionalProperties":false,"properties":{"step":{"additionalProperties":false,"properties":{"config":{"description":"Any JSON value."},"step_id":{"type":"string"}},"required":["step_id"],"type":"object"}},"required":["step"],"type":"object"},{"additionalProperties":false,"properties":{"map":{"additionalProperties":false,"properties":{"mapping":{"additionalProperties":false,"properties":{"fields":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["fields"],"type":"object"}},"required":["mapping"],"type":"object"}},"required":["map"],"type":"object"},{"additionalProperties":false,"properties":{"join":{"additionalProperties":false,"properties":{"strategy":{"default":"all_or_fail","enum":["all_or_fail","all_settled"],"type":"string"}},"type":"object"}},"required":["join"],"type":"object"},{"additionalProperties":false,"properties":{"loop":{"additionalProperties":false,"properties":{"body":{"type":"string"},"condition":{"$ref":"#/components/schemas/Condition"},"mode":{"$ref":"#/components/schemas/LoopMode"}},"required":["mode","body"],"type":"object"}},"required":["loop"],"type":"object"}]},"PendingPermission":{"additionalProperties":false,"properties":{"id":{"type":"string"},"input":{"description":"Any JSON value."},"level":{"type":"string"},"tool_name":{"type":"string"}},"required":["id","tool_name","input","level"],"type":"object"},"PendingToolCall":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"},"input":{"description":"Model-produced arguments. Validate against the registered schema in your application."},"name":{"type":"string"}},"required":["id","name","input"],"type":"object"},"ProviderSummary":{"additionalProperties":false,"properties":{"id":{"type":"string"},"model":{"type":"string"},"provider":{"enum":["openai","anthropic","gemini"],"type":"string"}},"required":["id","provider","model"],"type":"object"},"RunRequest":{"additionalProperties":false,"properties":{"history":{"description":"At most 64 messages and 196608 UTF-8 bytes of content in total. Defaults to empty.","items":{"$ref":"#/components/schemas/HistoryMessage"},"maxItems":64,"type":"array"},"max_tokens":{"default":4096,"maximum":16384,"minimum":1,"nullable":true,"type":"integer"},"prompt":{"description":"Nonblank, maximum 65536 UTF-8 bytes.","maxLength":65536,"minLength":1,"type":"string"},"system_prompt":{"description":"Nonblank, maximum 16384 UTF-8 bytes. Omit for the default.","maxLength":16384,"minLength":1,"nullable":true,"type":"string"}},"required":["prompt"],"type":"object"},"RunResponse":{"properties":{"history":{"description":"Prior history followed by current prompt and response. Trim before reuse when input limits are exceeded.","items":{"$ref":"#/components/schemas/HistoryMessage"},"type":"array"},"id":{"format":"uuid","type":"string"},"output":{"type":"string"},"stop_reason":{"enum":["end_turn","max_tokens","tool_use","stop_sequence","content_filter"],"type":"string"},"turns":{"description":"Number of parent agent turns; does not sum child-agent turns or extra compaction requests.","type":"integer"},"usage":{"$ref":"#/components/schemas/Usage"}},"required":["id","output","history","usage","stop_reason","turns"],"type":"object"},"RuntimeOptions":{"additionalProperties":false,"description":"Hosted runtime options. Subagents and tenant memory are supported; host execution and filesystem tools are unavailable.","properties":{"builtin_tools":{"default":[],"description":"Hosted mode supports TodoWrite. Use client tool callbacks for access to your files and external tools.","items":{"enum":["TodoWrite"],"type":"string"},"maxItems":1,"type":"array"},"memory":{"default":false,"type":"boolean"},"permission_mode":{"default":"read_only","enum":["read_only","allow","interactive"],"type":"string"},"subagents":{"default":false,"type":"boolean"}},"type":"object"},"SessionImport":{"additionalProperties":false,"properties":{"messages":{"items":{"$ref":"#/components/schemas/HistoryMessage"},"maxItems":64,"type":"array"}},"required":["messages"],"type":"object"},"SessionSummary":{"additionalProperties":false,"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"message_count":{"minimum":0,"type":"integer"},"model":{"nullable":true,"type":"string"}},"required":["id","created_at","message_count","model"],"type":"object"},"StepBinding":{"oneOf":[{"additionalProperties":false,"properties":{"kind":{"enum":["agent"],"type":"string"},"output_json":{"default":false,"type":"boolean"},"prompt_pointer":{"nullable":true,"type":"string"},"request":{"$ref":"#/components/schemas/AgentRunRequest"}},"required":["kind","request"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"enum":["human"],"type":"string"},"message":{"default":"","type":"string"},"resume_schema":{"description":"Any JSON value."}},"required":["kind"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"enum":["json"],"type":"string"},"pointer":{"nullable":true,"type":"string"},"value":{"description":"Any JSON value."}},"required":["kind"],"type":"object"}]},"StoredMessage":{"additionalProperties":true,"description":"Persisted SDK message object, including role/content and optional metadata. Content may contain text, tool calls and results. This read schema is richer than the text-only session import schema.","type":"object"},"ToolDefinition":{"additionalProperties":false,"properties":{"description":{"description":"At most 4096 UTF-8 bytes.","maxLength":4096,"type":"string"},"input_schema":{"description":"JSON Schema with type=object; maximum 65536 serialized UTF-8 bytes. The client must validate tool arguments before execution.","type":"object"},"name":{"maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"required":["name","description","input_schema"],"type":"object"},"ToolMetadata":{"additionalProperties":false,"properties":{"agent_run_required":{"type":"boolean"},"category":{"type":"string"},"description":{"type":"string"},"input_schema":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"permission":{"enum":["none","read_only","write","execute","dangerous","forbidden"],"type":"string"},"requires":{"nullable":true,"type":"string"},"selection":{"additionalProperties":true,"type":"object"}},"required":["name","description","input_schema","permission","category","requires"],"type":"object"},"ToolResultsRequest":{"additionalProperties":false,"properties":{"results":{"description":"Combined output at most 196608 bytes. IDs must be pending and unique. Entire batch validates before any results are applied.","items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"},"is_error":{"default":false,"type":"boolean"},"output":{"description":"At most 65536 UTF-8 bytes. Serialize structured output as JSON text.","maxLength":65536,"type":"string"}},"required":["id","output"],"type":"object"},"maxItems":64,"minItems":1,"type":"array"}},"required":["results"],"type":"object"},"Usage":{"description":"Usage from this agent's own model turns, including context supplied on those turns. Parent run usage does not aggregate subagent calls or extra context-compaction calls. Cost is an estimate; consult provider billing for total charges.","properties":{"cache_creation_input_tokens":{"minimum":0,"type":"integer"},"cache_read_input_tokens":{"minimum":0,"type":"integer"},"cost_usd":{"type":"number"},"input_tokens":{"minimum":0,"type":"integer"},"output_tokens":{"minimum":0,"type":"integer"},"total_tokens":{"minimum":0,"type":"integer"}},"required":["input_tokens","output_tokens","total_tokens","cache_creation_input_tokens","cache_read_input_tokens"],"type":"object"},"WorkflowDef":{"additionalProperties":false,"properties":{"edges":{"items":{"additionalProperties":false,"properties":{"from":{"type":"string"},"kind":{"$ref":"#/components/schemas/EdgeKind"},"to":{"type":"string"}},"required":["from","to","kind"],"type":"object"},"maxItems":256,"type":"array"},"entry":{"type":"string"},"id":{"description":"Filesystem-backed IDs additionally reject reserved device names.","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"input_schema":{"description":"Any JSON value."},"nodes":{"items":{"additionalProperties":false,"properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/NodeKind"},"ui":{"additionalProperties":false,"properties":{"color":{"nullable":true,"type":"string"},"label":{"nullable":true,"type":"string"},"x":{"nullable":true,"type":"number"},"y":{"nullable":true,"type":"number"}},"type":"object"}},"required":["id","kind"],"type":"object"},"maxItems":64,"minItems":1,"type":"array"},"output_schema":{"description":"Any JSON value."}},"required":["id","nodes","edges","entry"],"type":"object"},"WorkflowDefinition":{"additionalProperties":false,"properties":{"definition":{"$ref":"#/components/schemas/WorkflowDef"},"steps":{"additionalProperties":{"$ref":"#/components/schemas/StepBinding"},"type":"object"}},"required":["definition"],"type":"object"},"WorkflowRun":{"additionalProperties":false,"properties":{"child_agent_runs":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"int64","type":"integer"},"error":{"description":"Any JSON value."},"id":{"type":"string"},"result":{"description":"Any JSON value."},"status":{"enum":["queued","running","suspended","completed","failed","cancelled"],"type":"string"},"updated_at":{"format":"int64","type":"integer"},"workflow_id":{"type":"string"}},"required":["id","workflow_id","status","created_at","updated_at","child_agent_runs"],"type":"object"},"WorkflowRunRequest":{"additionalProperties":false,"properties":{"input":{"description":"Any JSON value."},"timeout_seconds":{"default":300,"maximum":600,"minimum":1,"nullable":true,"type":"integer"},"workflow_id":{"type":"string"}},"required":["workflow_id"],"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"Your model provider API key. Also supply X-Jeus-Provider and X-Jeus-Model; there is no separate Jeus API token.","scheme":"bearer","type":"http"}}},"info":{"description":"Bring your own OpenAI, Anthropic, or Gemini API key. Send it as Authorization: Bearer with X-Jeus-Provider and X-Jeus-Model on every runtime request. Data and runs are isolated by provider, model, and key. Keys stay in memory. Client tool callbacks, subagents, workflows, sessions, and memory are supported. Host filesystem/shell tools, MCP, hooks, skills, provider registration, and unattended schedules are disabled on the shared hosted service.","title":"Jeus Orchestration API","version":"0.3.0"},"openapi":"3.0.3","paths":{"/auth":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"mode":{"enum":["operator","byok"],"type":"string"},"providers":{"items":{"type":"string"},"type":"array"}},"type":"object"}}},"description":"Public authentication metadata"}},"security":[],"summary":"Discover this service's authentication mode"}},"/health":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["ok"],"type":"string"}},"required":["status"],"type":"object"}}},"description":"Service is running"}},"security":[],"summary":"Process liveness; does not validate upstream credentials"}},"/openapi.json":{"get":{"parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OpenAPI document"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"}},"summary":"This API contract"}},"/v1/agent-runs":{"post":{"description":"Create an agent run with client tool callbacks, optional TodoWrite, isolated memory, and subagents. Host shell/filesystem tools and MCP are unavailable in hosted mode. Poll the run, stream events, and submit client tool results using the same provider/model/key headers.","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"}},"required":["id"],"type":"object"}}},"description":"Run created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"}},"summary":"Start a multi-step agent with client or runtime tools"}},"/v1/agent-runs/{id}":{"delete":{"description":"Cancellation stops server reasoning and drops pending tool requests. It cannot undo or stop work the client has already executed.","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"type":"string"},"status":{"enum":["cancelled","deleted"],"type":"string"}},"required":["id","status"],"type":"object"}}},"description":"Cancelled or deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"}},"summary":"Cancel an active run or delete a terminal run"},"get":{"parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunStatus"}}},"description":"Run state"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"}},"summary":"Poll status, pending tool calls and permissions, or final results"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}]},"/v1/agent-runs/{id}/events":{"get":{"description":"SSE journal retains at most 4096 events / 4 MiB. Replay uses Last-Event-ID; replay_gap tells clients to fetch the current run snapshot. Events include text_delta, tool lifecycle, permissions, context, subagent lifecycle, and terminal status.","operationId":"get_agent_runs_id_events","parameters":[{"in":"header","name":"Last-Event-ID","required":false,"schema":{"minimum":0,"type":"integer"}},{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Stream agent events with bounded replay"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}]},"/v1/agent-runs/{id}/messages":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"post":{"description":"At most 32 queued messages. Does not interrupt an in-flight model call or revive a terminal run.","operationId":"post_agent_runs_id_messages","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"message":{"maxLength":16384,"minLength":1,"type":"string"}},"required":["message"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"type":"string"},"queued":{"type":"boolean"}},"required":["id","queued"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Queue a user message for the next model turn"}},"/v1/agent-runs/{id}/permissions":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"post_agent_runs_id_permissions","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"allow":{"type":"boolean"},"id":{"type":"string"}},"required":["id","allow"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"},"id":{"type":"string"}},"required":["id","accepted"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Allow or deny one pending tool execution"}},"/v1/agent-runs/{id}/tool-results":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"post":{"parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResultsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"accepted":{"maximum":64,"minimum":1,"type":"integer"},"id":{"format":"uuid","type":"string"}},"required":["id","accepted"],"type":"object"}}},"description":"Results accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Failure; see error.code and error.message"}},"summary":"Return results for pending tool calls"}},"/v1/capabilities":{"get":{"operationId":"get_capabilities","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"authentication":{"type":"string"},"capabilities":{"items":{"type":"string"},"type":"array"},"limits":{"additionalProperties":false,"properties":{"active_agents":{"type":"integer"},"max_run_seconds":{"type":"integer"},"max_turns":{"type":"integer"},"retained_agent_runs":{"type":"integer"}},"type":"object"},"tool_isolation":{"type":"string"},"version":{"type":"string"}},"required":["version","capabilities","limits","authentication","tool_isolation"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Discover enabled API capabilities and operational limits"},"parameters":[]},"/v1/info":{"get":{"parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"api_version":{"enum":["v1"],"type":"string"},"model":{"type":"string"},"provider":{"enum":["openai","anthropic","gemini"],"type":"string"}},"required":["api_version","provider","model"],"type":"object"}}},"description":"Service configuration"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"}},"summary":"Configured model and provider"}},"/v1/memory/files":{"get":{"operationId":"get_memory_files","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"files":{"items":{"type":"string"},"type":"array"}},"required":["files"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"List bounded Markdown memory files"},"parameters":[]},"/v1/memory/files/{name}":{"delete":{"operationId":"delete_memory_files_name","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"deleted":{"type":"boolean"},"name":{"type":"string"}},"required":["name","deleted"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Delete a Markdown memory file"},"get":{"operationId":"get_memory_files_name","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryFile"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Read exact Markdown and parsed metadata"},"parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"put":{"description":"Name must be a restricted identifier plus .md. No path separators, links, or reserved device names. At most 200 files.","operationId":"put_memory_files_name","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"content":{"maxLength":65536,"minLength":1,"type":"string"}},"required":["content"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bytes":{"type":"integer"},"name":{"type":"string"}},"required":["name","bytes"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Atomically write Markdown memory"}},"/v1/memory/graph":{"get":{"operationId":"get_memory_graph","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"memory_count":{"minimum":0,"type":"integer"},"relationship_count":{"minimum":0,"type":"integer"},"session_count":{"minimum":0,"type":"integer"},"topic_count":{"minimum":0,"type":"integer"}},"required":["memory_count","session_count","topic_count","relationship_count"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Get graph counts"},"parameters":[],"post":{"operationId":"post_memory_graph","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphWrite"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"}},"required":["id"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Persist a memory node in the Grafeo graph"}},"/v1/memory/graph/links":{"parameters":[],"post":{"operationId":"post_memory_graph_links","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"from_id":{"format":"uuid","type":"string"},"relationship":{"description":"Filesystem-backed IDs additionally reject reserved device names.","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"to_id":{"format":"uuid","type":"string"}},"required":["from_id","to_id","relationship"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"linked":{"type":"boolean"}},"required":["linked"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Link two existing graph memories"}},"/v1/memory/graph/{id}/tags":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"post_memory_graph_id_tags","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"topic":{"description":"Filesystem-backed IDs additionally reject reserved device names.","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}},"required":["topic"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"tagged":{"type":"boolean"}},"required":["tagged"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Tag an existing graph memory"}},"/v1/memory/recall":{"parameters":[],"post":{"operationId":"post_memory_recall","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphRecall"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"matches":{"items":{"additionalProperties":false,"properties":{"content":{"type":"string"},"relevance":{"type":"number"}},"required":["content","relevance"],"type":"object"},"type":"array"},"method":{"enum":["substring_word_overlap"],"type":"string"}},"required":["matches","method"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Recall graph memories with substring and word-overlap ranking"}},"/v1/memory/search":{"parameters":[],"post":{"operationId":"post_memory_search","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphSearch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"matches":{"items":{"type":"string"},"type":"array"}},"required":["matches"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Search graph text, category, or topic"}},"/v1/providers":{"get":{"operationId":"get_providers","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"providers":{"items":{"$ref":"#/components/schemas/ProviderSummary"},"type":"array"}},"required":["providers"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Read the connected provider and model"},"parameters":[]},"/v1/runs":{"post":{"description":"Stateless synchronous request. Maximum 4 active runs and 120 seconds per run. Body limit 262144 bytes. Provider, model and tools cannot be selected by callers.","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResponse"}}},"description":"Completed run"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request failed"}},"summary":"Run a text agent and return the final response"}},"/v1/sessions":{"get":{"description":"Returns 409 if an existing session has an active reservation. At most 1000 sessions, 8 MiB each.","operationId":"get_sessions","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"sessions":{"items":{"$ref":"#/components/schemas/SessionSummary"},"type":"array"}},"required":["sessions"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"List persisted SDK sessions"},"parameters":[]},"/v1/sessions/{id}":{"delete":{"operationId":"delete_sessions_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"}},"required":["id","deleted"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Delete a persisted transcript"},"get":{"operationId":"get_sessions_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"type":"string"},"messages":{"items":{"$ref":"#/components/schemas/StoredMessage"},"type":"array"}},"required":["id","messages"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Read a persisted transcript"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"put_sessions_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionImport"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"type":"string"},"message_count":{"type":"integer"}},"required":["id","message_count"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Atomically import or replace a text transcript"}},"/v1/tools":{"get":{"operationId":"get_tools","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"categories":{"items":{"type":"string"},"type":"array"},"default_permission_mode":{"enum":["read_only"],"type":"string"},"tools":{"items":{"$ref":"#/components/schemas/ToolMetadata"},"type":"array"}},"required":["tools","categories","default_permission_mode"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Discover available host tools and exact input schemas"},"parameters":[]},"/v1/workflow-runs":{"get":{"operationId":"get_workflow_runs","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"runs":{"items":{"$ref":"#/components/schemas/WorkflowRun"},"type":"array"}},"required":["runs"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"List retained workflow runs"},"parameters":[],"post":{"operationId":"post_workflow_runs","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Start a workflow using real SDK graph execution"}},"/v1/workflow-runs/{id}":{"delete":{"operationId":"delete_workflow_runs_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Cancel a workflow and its active child agents"},"get":{"operationId":"get_workflow_runs_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Read workflow status and child agent run IDs"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}]},"/v1/workflow-runs/{id}/events":{"get":{"description":"SSE uses snapshot and workflow events. Pass the last numeric event ID as ?after=. Retains at most 512 events / 2 MiB; events are not persisted.","operationId":"get_workflow_runs_id_events","parameters":[{"in":"query","name":"after","required":false,"schema":{"default":0,"minimum":0,"type":"integer"}},{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Stream a workflow snapshot and events"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}]},"/v1/workflow-runs/{id}/resume":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"post":{"operationId":"post_workflow_runs_id_resume","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"description":"Any JSON value."},"node_id":{"type":"string"}},"required":["node_id","data"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Resume a suspended human step"}},"/v1/workflows":{"get":{"operationId":"get_workflows","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"workflows":{"items":{"$ref":"#/components/schemas/WorkflowDefinition"},"type":"array"}},"required":["workflows"],"type":"object"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"List stored workflow definitions"},"parameters":[],"post":{"operationId":"post_workflows","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Compile and store a workflow graph"}},"/v1/workflows/{id}":{"delete":{"operationId":"delete_workflows_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"204":{"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Delete a workflow not referenced by a schedule"},"get":{"operationId":"get_workflows_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Read a workflow definition"},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"put":{"operationId":"put_workflows_id","parameters":[{"description":"Provider for your API key.","in":"header","name":"X-Jeus-Provider","required":true,"schema":{"enum":["openai","anthropic","gemini"],"type":"string"}},{"description":"Model ID available to your provider account. Use the same provider, model, and key to access existing runs and data.","in":"header","name":"X-Jeus-Model","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}},"description":"Success"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/plain":{"schema":{"type":"string"}}},"description":"Authentication, validation, conflict, capacity, provider, or storage error. Malformed JSON on configuration endpoints may use the framework rejection body."}},"summary":"Replace a stored workflow definition"}}},"security":[{"bearerAuth":[]}],"servers":[{"description":"This Jeus service","url":"/orchestration"}]}