Skip to content

Commit 467d3ae

Browse files
authored
Clarify that agents can be created dynamically (#3592)
1 parent 01685e8 commit 467d3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ print(result.output)
5757
4. `result.output` will be a boolean indicating if the square is a winner. Pydantic performs the output validation, and it'll be typed as a `bool` since its type is derived from the `output_type` generic parameter of the agent.
5858

5959
!!! tip "Agents are designed for reuse, like FastAPI Apps"
60-
Agents are intended to be instantiated once (frequently as module globals) and reused throughout your application, similar to a small [FastAPI][fastapi.FastAPI] app or an [APIRouter][fastapi.APIRouter].
60+
You can instantiate one agent and use it globally throughout your application, as you would a small [FastAPI][fastapi.FastAPI] app or an [APIRouter][fastapi.APIRouter], or dynamically create as many agents as you want. Both are valid and supported ways to use agents.
6161

6262
## Running Agents
6363

0 commit comments

Comments
 (0)