Skip to main content
Agents are intelligent actors that autonomously accomplish assigned goals. They can plan, take notes on a filesystem, curate context on every turn, and delegate work to parallel sub-agents. Each agent operates in a loop: build context, decide on next steps, call tools, and gather responses. This cycle continues until the goal is accomplished and there are no more tool calls needed. Flowchart showing the agent loop: (1) Build context from instructions, memory, and tools, (2) Send context to language model, (3) Receive tool calls from model, (4) Execute tools and gather responses, (5) Repeat until goal is achieved or no more tool calls are needed. In each iteration of its loop, an agent invokes a model to understand information, it has gathered in its context so far, and pick what next steps will take it towards its goal. The model returns these next steps as a list tools calls for the agent to invoke. The Autonomy Framework and the Autonomy Computer work together to give you components and infrastructure to manage memories across many users and curate context for agents working on long and complex tasks. They also provide you with a foundation to operate tools that are necessary for deep work. Agents can invoke python functions as tools, or call tools provided by MCP servers. They can access a dedicated file system to save plans and take notes. Agents can also create many sub-agents that concentrate on sub-tasks. Parallel agents, each focused on a small part, achieve the overall goal faster. They are also more successful because the context that they provide to their language model contains much less noise.

Create an Agent

You can create a simple agent by providing a name, instructions, and a model:
images/main/main.py
Once an agent is running, you can send messages to it using the built-in HTTP API.
curl
For longer responses, use the streaming API to receive chunks as they’re generated:
curl
This returns newline-delimited JSON chunks as the agent generates its response.

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.

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

  1. Attorney submits a case description via API.
  2. Lead researcher agent analyzes the case and identifies specific research questions.
  3. Lead researcher saves research plan to filesystem for organization.
  4. Each question is delegated to a research assistant subagent using delegate_to_subagents_parallel.
  5. Subagents use Brave Search to find statutes, case law, and legal authorities.
  6. Subagents use filesystem to organize their research notes and draft responses.
  7. Subagents return findings via tool call responses to lead researcher.
  8. Lead researcher compiles all findings into a comprehensive legal research memo.
Submit a case for research:
curl
The API returns a comprehensive legal research memo with research questions, findings, citations, and recommendations.