How brunoaadul/autonomous-research-agent works
Crokuta is a FastAPI research-agent API with two distinct capabilities: generating preliminary research briefs and routing chat requests through a multi-provider LLM gateway. The research path validates a topic, derives questions, areas and keywords, then assembles a structured report; it does not retrieve external sources. The LLM path accepts a typed request, resolves provider settings and delegates completion to LiteLLM. The excerpts show these entry points and internal calls; no persistent store or research-search integration is shown.
Main entry points: research.py Research engine · main.py FastAPI endpoints · gateway.py LLM gateway · llm.py LLM schemas
Components 14
API
- FastAPI endpoints
app/main.py - Research request
app/main.py
Research
- Research runner
app/research.py - Research engine
app/research.py - Topic validation
app/research.py - Research questions
app/research.py - Research areas
app/research.py - Keyword extraction
app/research.py - Research brief
app/research.py
LLM gateway
- LLM schemas
app/schemas/llm.py - LLM gateway
app/llm/gateway.py
Other components
- API caller
- LiteLLM completion
- LLM providers
Connections 14
- API caller → FastAPI endpoints: calls
app/main.py - FastAPI endpoints → Research request: validates topic
app/main.py - FastAPI endpoints → Research runner: calls
app/main.py - Research runner → Research engine: delegates to
app/research.py - Research engine → Topic validation: validates
app/research.py - Research engine → Research questions: generates
app/research.py - Research engine → Research areas: identifies
app/research.py - Research engine → Keyword extraction: extracts
app/research.py - Research engine → Research brief: assembles
app/research.py - FastAPI endpoints → LLM schemas: accepts request
app/main.py - FastAPI endpoints → LLM gateway: calls
app/main.py - LLM gateway → LLM schemas: normalizes response
app/llm/gateway.py - LLM gateway → LiteLLM completion: calls completion
app/llm/gateway.py - LiteLLM completion → LLM providers: routes requests