Skip to content

Commit

Permalink
Added agent architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ajosh0504 committed Feb 15, 2025
1 parent 3d7a349 commit a1e8c0b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 5 deletions.
6 changes: 1 addition & 5 deletions docs/10-key-concepts/1-what-are-ai-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@

![](/img/screenshots/10-key-concepts/agent-workflow.png)

An AI agent is a system that uses an LLM to **reason** through a problem, create a **plan** to solve the problem, and **execute** the plan with the help of a set of tools.

In multi-agent systems, two or more agents collaborate or orchestrate and delegate tasks to solve problems.

This way, agentic systems can handle complex, multi-step queries, and also self-revise and refine responses.
An AI agent is a system that uses an LLM to **reason** through a problem, create a **plan** to solve the problem, and **execute and iterate** on the plan with the help of a set of tools.
32 changes: 32 additions & 0 deletions docs/10-key-concepts/4-agent-architectures.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 🦹 Agent architectures

AI agents can consist of a single LLM as the decision maker or multiple LLMs (or same LLM, different prompts) working together to solve complex problems.

Let's look at a few different agent architectures:

## Tool-calling

This is the architecture most agents start with. It consists of a single LLM that has access to several tools to perform a range of tasks.

![](/img/screenshots/10-key-concepts/agent-workflow.png)

If you start with tool-calling agents, but upon thorough evaluation find that you need a more sophisticated architecture, only then consider multi-agent architectures. Bear in mind that fully autonomous multi-agent workflows mean higher costs, latency, and a system that is hard to debug, so use them with caution.

## Supervisor

In this architecture, a single agent (supervisor) interfaces with a group of agents to determine the next course of action.

![](/img/screenshots/10-key-concepts/supervisor.png)

## Network

In this architecture, each agent can communicate with every other agent and decide which one to call next or end the execution.

![](/img/screenshots/10-key-concepts/network.png)


## Custom

In this setup, you can decide which agents can interact with each other and how the control flows between them.

![](/img/screenshots/10-key-concepts/custom.png)
Binary file modified static/img/screenshots/10-key-concepts/agent-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/screenshots/10-key-concepts/custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a1e8c0b

Please sign in to comment.