Repository navigation
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
OpenAPI changes 🟢 1 non-breaking changeTip Safe to merge from an API-contract perspective. Full changelog ·
|
| Method | Path | Change | |
|---|---|---|---|
| 🟢 | POST |
/api/v1/agent |
endpoint added |
main ↔ 0e09ae49 · generated by oasdiff
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
we won’t merge this PR yet, as this is currently an experimental PR. we are exploring OCS (Open Chat Studio) to understand how it can fit into Kaapi’s use cases. for now, we have implemented a simple route that answers our query, while the tools and other configurations are kept static using langraph. Next action: #1230 |
Issue
Closes #1210
Summary
a
POST /agentendpoint, a read-only, natural-language Q&A agent over a project own Kaapi data (eval runs/datasets for text/STT/TTS, config versions, knowledge-base collections, documents). Ask a plain-English question about your project's evaluation data, get an answer, powered by Claude.Architecture, LangGraph tool-use loop (
graph.py):A 2-node state machine:
START → agent_node → (tool requested? → tool_executor_node → agent_node : END).agent_nodecalls Claude (configurable model, defaultclaude-opus-5) with the system prompt + tool defs.tool_executor_noderuns all requested tool calls concurrently.AGENT_MAX_ITERATIONS(default 8) rounds, after that,tool_choiceis forced to "none" so the model must answer with what it has (stop_reason="iteration_limit").Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.