AgentServerACP(
self,
agent: CompiledStateGraph | Callable[[AgentSessionContext], CompiledStateGraph],
*,
ACPAgent| Name | Type |
|---|---|
| agent | CompiledStateGraph | Callable[[AgentSessionContext], CompiledStateGraph] |
| modes | SessionModeState | None |
ACP agent server that bridges Deep Agents with the Agent Client Protocol.
Store the client connection for sending session updates.
Return server capabilities to the ACP client.
Create a new agent session with the given working directory.
Switch the session to a different mode, resetting the agent.
Cancel the current execution.
Process a user prompt and stream the agent response.