Skip to content

Commit d10e0ea

Browse files
elithrarRebeccaTamachiro
authored andcommitted
agents: Update calling-agents.mdx (#21501)
1 parent c207ed8 commit d10e0ea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/content/docs/agents/api-reference/calling-agents.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,15 @@ export class MyAgent extends Agent<Env> {
5959
```
6060
</TypeScriptExample>
6161

62-
#### Calling methods directly
62+
:::note[Calling other Agents]
63+
64+
You can also call other Agents from within an Agent and build multi-Agent systems.
65+
66+
Calling other Agents uses the same APIs as calling into an Agent directly.
67+
68+
:::
69+
70+
### Calling methods on Agents
6371

6472
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.
6573

0 commit comments

Comments
 (0)