{"openapi":"3.1.0","info":{"title":"CyteOnto API","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Health Health Get"}}}}}}},"/compare":{"post":{"summary":"Submit Compare","operationId":"submit_compare_compare_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status/{run_id}":{"get":{"summary":"Get Status","operationId":"get_status_status__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/result/{run_id}":{"get":{"summary":"Get Result","operationId":"get_result_result__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CompareRequest":{"properties":{"authorLabels":{"items":{"type":"string"},"type":"array","title":"Authorlabels"},"algorithms":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Algorithms"},"llmProvider":{"type":"string","enum":["openrouter","together","openai","nebius","fireworks"],"title":"Llmprovider","default":"nebius"},"llmModel":{"type":"string","title":"Llmmodel","default":"moonshotai/Kimi-K2.6"},"llmApiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llmapikey"},"embeddingProvider":{"type":"string","enum":["deepinfra","fireworks","nebius","ollama","openai","google","openrouter","together"],"title":"Embeddingprovider","default":"nebius"},"embeddingModel":{"type":"string","title":"Embeddingmodel","default":"Qwen/Qwen3-Embedding-8B"},"embeddingApiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embeddingapikey"},"embeddingModelSettings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Embeddingmodelsettings"},"embeddingMaxConcurrent":{"type":"integer","minimum":1.0,"title":"Embeddingmaxconcurrent","default":100},"maxDescriptionConcurrency":{"type":"integer","minimum":1.0,"title":"Maxdescriptionconcurrency","default":100},"usePubmedTool":{"type":"boolean","title":"Usepubmedtool","default":false},"reasoning":{"type":"boolean","title":"Reasoning","default":false},"metric":{"type":"string","title":"Metric","default":"cosine_kernel"},"metricParams":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metricparams"},"minMatchSimilarity":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Minmatchsimilarity","default":0.1},"compoundScoring":{"type":"string","enum":["max","hungarian_mean"],"title":"Compoundscoring","default":"max"},"useCache":{"type":"boolean","title":"Usecache","default":true}},"additionalProperties":false,"type":"object","required":["authorLabels","algorithms"],"title":"CompareRequest"},"CompareResponse":{"properties":{"runId":{"type":"string","title":"Runid"},"state":{"type":"string","enum":["queued","running","completed","failed"],"title":"State"}},"type":"object","required":["runId","state"],"title":"CompareResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ModelPairUsageResponse":{"properties":{"llmTier":{"type":"string","enum":["primary","fallback","mixed"],"title":"Llmtier"},"embeddingTier":{"type":"string","enum":["primary","fallback","mixed"],"title":"Embeddingtier"},"llmProvider":{"type":"string","title":"Llmprovider"},"llmModel":{"type":"string","title":"Llmmodel"},"embeddingProvider":{"type":"string","title":"Embeddingprovider"},"embeddingModel":{"type":"string","title":"Embeddingmodel"}},"type":"object","required":["llmTier","embeddingTier","llmProvider","llmModel","embeddingProvider","embeddingModel"],"title":"ModelPairUsageResponse"},"StatusResponse":{"properties":{"runId":{"type":"string","title":"Runid"},"state":{"type":"string","enum":["queued","running","completed","failed"],"title":"State"},"createdAt":{"type":"string","title":"Createdat"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startedat"},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completedat"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"numAuthorLabels":{"type":"integer","title":"Numauthorlabels"},"numAlgorithms":{"type":"integer","title":"Numalgorithms"},"numRows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Numrows"},"resultCsvPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resultcsvpath"},"resultJsonPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resultjsonpath"},"modelPairUsage":{"anyOf":[{"$ref":"#/components/schemas/ModelPairUsageResponse"},{"type":"null"}]}},"type":"object","required":["runId","state","createdAt","numAuthorLabels","numAlgorithms"],"title":"StatusResponse"},"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"}}}}