Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/content/docs/agents/api-reference/calling-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ export class MyAgent extends Agent<Env> {
```
</TypeScriptExample>

#### Calling methods directly
:::note[Calling other Agents]

You can also call other Agents from within an Agent and build multi-Agent systems.

Calling other Agents uses the same APIs as calling into an Agent directly.

:::

### Calling methods on Agents

When using `getAgentByName`, you can pass both requests (including WebSocket) connections and call methods defined directly on the Agent itself using the native [JavaScript RPC](/workers/runtime-apis/rpc/) (JSRPC) API.

Expand Down