
Create an Agent
You can create a simple agent by providing a name, instructions, and a model:images/main/main.py
curl
curl
Learn More
Programming Interfaces
How to create APIs for you agents.
Models
Choose language models for your agents.
Memory
How agents remember their history of steps.
Context
How agents curate context at each turn.
Tools
Give agents the ability to take actions.
Knowledge
Give agents the ability to search a corpus of documents.
Filesystem
Give agents the ability to read, write, and search files.
Subagents
Give agents the ability to start subagents and delegate work to them.
Complete Example: Legal Research Agents
This example demonstrates a sophisticated legal research application that combines multiple Autonomy features:- Custom FastAPI endpoint for case submission.
- Lead researcher agent that breaks cases into research questions.
- Filesystem tools for organizing research notes and drafts (conversation-level).
- Parallel subagents that investigate each question simultaneously.
- Subagent filesystem tools for organizing individual research work (conversation-level).
- MCP tools (Brave Search) for finding legal authorities and case law.
How It Works
- Attorney submits a case description via API.
- Lead researcher agent analyzes the case and identifies specific research questions.
- Lead researcher saves research plan to filesystem for organization.
- Each question is delegated to a research assistant subagent using
delegate_to_subagents_parallel. - Subagents use Brave Search to find statutes, case law, and legal authorities.
- Subagents use filesystem to organize their research notes and draft responses.
- Subagents return findings via tool call responses to lead researcher.
- Lead researcher compiles all findings into a comprehensive legal research memo.
Using the Legal Research API
Submit a case for research:curl

