{"openapi":"3.1.0","info":{"title":"FUNWAVE · MEC Learning Lab","version":"1.0.0"},"paths":{"/api/status":{"get":{"summary":"Status","operationId":"status_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/content":{"get":{"summary":"Content","operationId":"content_api_content_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dialogue":{"post":{"summary":"Dialogue","operationId":"dialogue_api_dialogue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Talk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evaluate":{"post":{"summary":"Evaluate","operationId":"evaluate_api_evaluate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask":{"post":{"summary":"Ask","operationId":"ask_api_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ask"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/latency/{mode}":{"post":{"summary":"Latency","operationId":"latency_api_latency__mode__post","parameters":[{"name":"mode","in":"path","required":true,"schema":{"enum":["echo","llm"],"type":"string","title":"Mode"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Probe"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Ask":{"properties":{"question":{"type":"string","maxLength":600,"minLength":2,"title":"Question"}},"type":"object","required":["question"],"title":"Ask"},"Evaluation":{"properties":{"scenario":{"type":"string","enum":["IV","IM","SC","ID","PO","SL"],"title":"Scenario","default":"IV"},"transcript":{"type":"string","maxLength":3000,"minLength":1,"title":"Transcript"},"recorded_duration_s":{"anyOf":[{"type":"number","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Recorded Duration S"}},"type":"object","required":["transcript"],"title":"Evaluation"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Probe":{"properties":{"request_id":{"type":"string","maxLength":100,"minLength":1,"title":"Request Id"},"payload":{"type":"string","maxLength":2048,"title":"Payload","default":""}},"type":"object","required":["request_id"],"title":"Probe"},"Talk":{"properties":{"scenario":{"type":"string","enum":["IV","IM","SC","ID","PO","SL"],"title":"Scenario","default":"IV"},"message":{"type":"string","maxLength":1600,"minLength":1,"title":"Message"},"history":{"items":{"$ref":"#/components/schemas/Turn"},"type":"array","maxItems":8,"title":"History"}},"type":"object","required":["message"],"title":"Talk"},"Turn":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":1000,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"Turn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}