You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/agents/api-reference/calling-agents.mdx
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,15 @@ export class MyAgent extends Agent<Env> {
59
59
```
60
60
</TypeScriptExample>
61
61
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
63
71
64
72
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.
0 commit comments