{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Get Root","operationId":"get_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/index.html":{"get":{"summary":"Get Index","operationId":"get_index_index_html_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/renderproof":{"get":{"summary":"Get Renderproof","description":"Serve the shareable proof-animation page.\n\nAfter this HTML loads it fetches only same-origin proof JSON (via /proofs)\nplus KaTeX from the same CDN the rest of the app already uses — and makes\nno backend round-trip thereafter. The CSP is still tighter than the main\napp's (no 'unsafe-eval'); the renderer's own guards (KaTeX trust limited to\n\\htmlData, textContent-only, schema validation) are what keep a hostile\nproof JSON inert. ``frame-ancestors *`` lets it be embedded anywhere.\nSee docs/shareable-proof-animations.md §7.","operationId":"get_renderproof_renderproof_get","parameters":[{"name":"theme","in":"query","required":false,"schema":{"type":"string","default":"","title":"Theme"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prove":{"get":{"summary":"Get Prove","description":"Serve the public /prove page — an isolated proof browser (and, later,\nan AI-driven derivation chat). Reuses the proof-animation widget like\n/renderproof, but this page also calls the same-origin proof-store API\n(/api/proofs*), hence `connect-src 'self'`. Not embeddable (interactive),\nso `frame-ancestors 'self'`.\n\n``?draft=<docid>`` (DEBUG_MODE only) preloads the Derive tab from a local\ndraft written by the `algebench-prove` skill — see `_load_derive_draft`.","operationId":"get_prove_prove_get","parameters":[{"name":"theme","in":"query","required":false,"schema":{"type":"string","default":"","title":"Theme"}},{"name":"draft","in":"query","required":false,"schema":{"type":"string","default":"","title":"Draft"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proofs/{path}":{"get":{"summary":"Get Proof File","description":"Serve a built-in proof JSON from proofs/, confined and .json-only.\n\nDouble-gated against traversal: sanitize_path keeps the result inside\nproofs/ (rejecting .., absolute paths and symlink escapes) and the suffix\nallowlist rejects anything that isn't .json.","operationId":"get_proof_file_proofs__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proofs":{"get":{"summary":"Catalog Endpoint","description":"Merged {id,title,domain,goal} catalog for the /prove typeahead+browse.\n\n``includeSubmissions=1`` (a deliberate Browse-tab opt-in) additionally\nreturns pending submissions, each tagged ``status: \"under-review\"``.\nThe default response never lists them.","operationId":"catalog_endpoint_api_proofs_get","parameters":[{"name":"includeSubmissions","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Includesubmissions"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proofs/name-available":{"get":{"summary":"Name Available","operationId":"name_available_api_proofs_name_available_get","parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proofs/item":{"get":{"summary":"Item","description":"Full proof JSON by id — seed, then the store, then pending submissions.\n\nSubmissions are readable by their full id (shareable link) even though\nthe default catalog hides them; those responses carry an\n``X-Proof-Status: under-review`` header so the client can badge them.","operationId":"item_api_proofs_item_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proofs/source":{"get":{"summary":"Source","description":"Author-only source material (documentation + references + prompt),\nsecret-gated. Falls back to the review queue so a submission's author\ncan restore their package (the edit-by-key flow).","operationId":"source_api_proofs_source_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}},{"name":"secret","in":"query","required":false,"schema":{"type":"string","default":"","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proof-submissions":{"post":{"summary":"Submit","description":"Submit a derivation for review under a NEW unique name.\n\nThe submission is a package: the proof JSON plus its context (the derive\nprompt + documentation + references) written to the review-queue store.\nThe claimed id is unique across published proofs AND pending submissions;\nthe response secret is the content-HMAC edit key — the only handle to\nedit the pending submission (it rotates on every update, never stored).","operationId":"submit_api_proof_submissions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Submission","description":"Edit a PENDING submission by its edit key (CAS; the key rotates).\n\nWorks only while the id is still in the review queue — once a submission\nis approved (promoted into ``proofs/``) it's gone from here and the author\ncan only clone. 403 covers a wrong/stale key and an already-promoted id\nalike (no oracle distinguishing them). There is deliberately no public\nedit path into the published ``proofs/`` space.","operationId":"update_submission_api_proof_submissions_put","parameters":[{"name":"secret","in":"query","required":false,"schema":{"type":"string","default":"","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proof-ref":{"get":{"summary":"Proof Ref","description":"Resolve a source-qualified cross-reference (allowlist-gated bucket).","operationId":"proof_ref_api_proof_ref_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}},{"name":"gcsBucket","in":"query","required":false,"schema":{"type":"string","default":"","title":"Gcsbucket"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat.js":{"get":{"summary":"Get Chat Js","operationId":"get_chat_js_chat_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live-tools/js/voice-character-selector.js":{"get":{"summary":"Get Voice Character Selector","operationId":"get_voice_character_selector_gemini_live_tools_js_voice_character_selector_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live-tools/js/tts-audio-player.js":{"get":{"summary":"Get Tts Audio Player","operationId":"get_tts_audio_player_gemini_live_tools_js_tts_audio_player_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/style.css":{"get":{"summary":"Get Style Css","operationId":"get_style_css_style_css_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tokens.css":{"get":{"summary":"Get Tokens Css","description":"Shared design tokens (both themes) — linked by every app page.","operationId":"get_tokens_css_tokens_css_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/fonts/{filename}":{"get":{"summary":"Get Font File","description":"Serve self-hosted webfonts from static/fonts/ (woff2 only).","operationId":"get_font_file_fonts__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/objects/{filename}":{"get":{"summary":"Get Objects Js","description":"Serve ES module files from static/objects/ subdirectory.","operationId":"get_objects_js_objects__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/version":{"get":{"summary":"Get Version","description":"Report the running app version (from the root VERSION file).\n\nLets the deploy/release tooling verify which version a given host\n(staging vs prod) is actually serving.","operationId":"get_version_api_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/graph/themes":{"get":{"summary":"Get Graph Themes","description":"List available semantic-graph theme presets from themes/semantic-graph/.\n\nEach entry is ``{name, mode}`` — ``mode`` is read from the theme's\ndeclared ``mode`` field (``\"dark\"`` or ``\"light\"``) so the picker UI\ncan group themes by backdrop.","operationId":"get_graph_themes_api_graph_themes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/graph/theme/{name}":{"get":{"summary":"Get Graph Theme","description":"Return the full JSON for a single semantic-graph theme.","operationId":"get_graph_theme_api_graph_theme__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/graph/from-latex":{"post":{"summary":"Post Graph From Latex","description":"Derive a semantic graph from a LaTeX math string.\n\nUsed by the Graph tab to auto-populate diagrams for proof steps that\ndo not ship an explicit ``semanticGraph`` field (including steps the\nload-time autofill deferred past ALGEBENCH_GRAPH_AUTOFILL_LIMIT).\n\nAccepts the RAW proof-step math: ``\\htmlClass{hl-X}{...}`` wrappers\nare extracted and mapped onto graph nodes exactly like the eager\nautofill path, so lazily derived graphs keep their highlight colors.","operationId":"post_graph_from_latex_api_graph_from_latex_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatexToGraphRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/graph/generate-mathjs":{"post":{"summary":"Post Generate Mathjs","description":"Convert a LaTeX sub-expression to a mathjs-compatible script.\n\nAccepts the ``subexpr`` field from a semantic graph node and returns\na mathjs expression string suitable for ``math.compile()`` on the\nclient.  Relations (``=``, ``>``, …) are automatically converted to\n``LHS - RHS``.","operationId":"post_generate_mathjs_api_graph_generate_mathjs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateMathjsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/expert/{name}":{"post":{"summary":"Run Expert","description":"Generic expert/handler entry point.\n\n``name`` selects a registered expert or a handler (a custom pre/post\nwrapper around an expert call). Adding an expert or handler needs no new\nroute — they self-register and are reachable here by name. The shared\nper-IP ``_agentic_rate_limit`` (above) is the only throttle.\n\nStatus codes: 404 unknown name, 422 bad request body, 400 derivation\nerror (unparseable expression / empty result), 500 otherwise.","operationId":"run_expert_api_expert__name__post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/graph/enrich":{"post":{"summary":"Post Graph Enrich","description":"Enrich a semantic graph via Gemini (descriptions, emoji, color, corrections).\n\nRuntime in-memory cache keyed by ``sha256({graph, context})`` — the\nsame graph asked about in two different lesson/scene contexts will\ncache as two separate entries, since context disambiguates ambiguous\nsymbols (e.g. ``T`` = thrust vs temperature).\n\nFailure modes:\n  - 502 on ``AgentError`` (Gemini exhausted retries / unexpected output)\n  - 503 if the agents package can't import or ``GEMINI_API_KEY`` is missing\n  - 500 on any other exception\nThe client treats all non-2xx as \"keep showing the unenriched graph\"\nand may retry on a future render.","operationId":"post_graph_enrich_api_graph_enrich_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphEnrichRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/graph/mermaid":{"post":{"summary":"Post Graph Mermaid","description":"Regenerate Mermaid source from a semantic graph with the given theme/direction.","operationId":"post_graph_mermaid_api_graph_mermaid_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MermaidRenderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/graph-panel/{filename}":{"get":{"summary":"Get Graph Panel File","description":"Serve files from static/graph-panel/ subdirectory.","operationId":"get_graph_panel_file_graph_panel__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/coach/{filename}":{"get":{"summary":"Get Coach File","description":"Serve files from static/coach/ subdirectory (quick-intro Coach).","operationId":"get_coach_file_coach__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proof-animation/{filename}":{"get":{"summary":"Get Proof Animation File","description":"Serve a known FLIP-engine asset from static/proof-animation/.","operationId":"get_proof_animation_file_proof_animation__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{name}.js":{"get":{"summary":"Get Module Js","description":"Serve any top-level ES module from the static directory.","operationId":"get_module_js__name__js_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/favicon.ico":{"get":{"summary":"Get Favicon","operationId":"get_favicon_favicon_ico_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/chat/available":{"get":{"summary":"Get Chat Available","operationId":"get_chat_available_api_chat_available_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Get Health","operationId":"get_health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/memory":{"get":{"summary":"Get Memory","operationId":"get_memory_api_memory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/debug/system_prompt":{"post":{"summary":"Get Debug System Prompt","operationId":"get_debug_system_prompt_api_debug_system_prompt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scenes":{"get":{"summary":"Get Scenes","operationId":"get_scenes_api_scenes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/scene_file":{"get":{"summary":"Get Scene File","operationId":"get_scene_file_api_scene_file_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/domains":{"get":{"summary":"Get Domains","operationId":"get_domains_api_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/domains/{name}":{"get":{"summary":"Get Domain Docs","operationId":"get_domain_docs_api_domains__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/domains/{path}":{"get":{"summary":"Get Domain File","operationId":"get_domain_file_domains__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scenes/{name}":{"get":{"summary":"Get Scene","operationId":"get_scene_scenes__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scene":{"get":{"summary":"Get Current Scene","operationId":"get_current_scene_api_scene_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shutdown":{"get":{"summary":"Shutdown","operationId":"shutdown_shutdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/chat":{"post":{"summary":"Api Chat","operationId":"api_chat_api_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proof-chat":{"post":{"summary":"Api Proof Chat","description":"Proof-scoped chat — the Gemini chat agent with a proof-only system prompt,\nthe conversation history, and the step in view (no app framing).\n\nCarries two tools, ``edit_step`` and ``derive``, and only when\n``allowEdits`` is set. An ``edit_step`` call runs HERE and its variants\nride back in the same response, so changing a step costs one turn. A\n``derive`` call does NOT run here — a full derivation takes longer than a\nchat turn may, so the request is handed to the client, which runs it on\nthe same path as the Derive box and reports progress in its status line.","operationId":"api_proof_chat_api_proof_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proof-chat/debug":{"post":{"summary":"Api Proof Chat Debug","description":"Debug-only: the exact context (system prompt + thread) the proof chat\nwould send right now. Backs the /prove CTX inspector; 404 unless --debug.","operationId":"api_proof_chat_debug_api_proof_chat_debug_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tts/stream":{"post":{"summary":"Api Tts Stream","operationId":"api_tts_stream_api_tts_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tts/download":{"get":{"summary":"Api Tts Download","operationId":"api_tts_download_api_tts_download_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tts/kill":{"post":{"summary":"Api Tts Kill","operationId":"api_tts_kill_api_tts_kill_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tts/events":{"get":{"summary":"Api Tts Events","operationId":"api_tts_events_api_tts_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/load":{"post":{"summary":"Api Load","operationId":"api_load_api_load_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ChatRequest":{"properties":{"message":{"type":"string","title":"Message","default":""},"history":{"items":{},"type":"array","title":"History","default":[]},"context":{"additionalProperties":true,"type":"object","title":"Context","default":{}}},"type":"object","title":"ChatRequest"},"ContextRequest":{"properties":{"context":{"additionalProperties":true,"type":"object","title":"Context","default":{}}},"type":"object","title":"ContextRequest"},"GenerateMathjsRequest":{"properties":{"subexpr":{"type":"string","title":"Subexpr"}},"type":"object","required":["subexpr"],"title":"GenerateMathjsRequest"},"GraphEnrichRequest":{"properties":{"graph":{"additionalProperties":true,"type":"object","title":"Graph"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","required":["graph"],"title":"GraphEnrichRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LatexToGraphRequest":{"properties":{"latex":{"type":"string","title":"Latex"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"highlights":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Highlights"}},"type":"object","required":["latex"],"title":"LatexToGraphRequest"},"MermaidRenderRequest":{"properties":{"graph":{"additionalProperties":true,"type":"object","title":"Graph","default":{}},"theme":{"type":"string","title":"Theme","default":"default-light"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"show":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Show"}},"type":"object","title":"MermaidRenderRequest"},"ProofChatRequest":{"properties":{"messages":{"items":{},"type":"array","title":"Messages","default":[]},"proof":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proof"},"currentStep":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Currentstep"},"allowEdits":{"type":"boolean","title":"Allowedits","default":false},"inDerive":{"type":"boolean","title":"Inderive","default":false}},"type":"object","title":"ProofChatRequest"},"TtsRequest":{"properties":{"text":{"type":"string","title":"Text","default":""},"character":{"type":"string","title":"Character","default":"joker"},"voice":{"type":"string","title":"Voice","default":"Charon"},"mode":{"type":"string","title":"Mode","default":"read"}},"type":"object","title":"TtsRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}