@@ -71,7 +71,7 @@ Or, if using `uv`:
7171 "args" : [
7272 " run" ,
7373 " /abs/path/to/agentclientprotocol/python-sdk/examples/echo_agent.py"
74- ],
74+ ]
7575 }
7676 }
7777}
@@ -92,7 +92,6 @@ import asyncio
9292import sys
9393from pathlib import Path
9494from typing import Any
95- from uuid import uuid4
9695
9796from acp import PROTOCOL_VERSION , spawn_agent_process, text_block
9897from acp.interfaces import Client
@@ -116,7 +115,6 @@ async def main() -> None:
116115 await conn.prompt(
117116 session_id = session.session_id,
118117 prompt = [text_block(" Hello from spawn!" )],
119- message_id = str (uuid4()),
120118 )
121119
122120asyncio.run(main())
@@ -135,9 +133,9 @@ from acp import Agent, PromptResponse
135133
136134
137135class MyAgent (Agent ):
138- async def prompt (self , prompt , session_id , message_id = None , ** kwargs ) -> PromptResponse:
136+ async def prompt (self , prompt , session_id , ** kwargs ) -> PromptResponse:
139137 # inspect prompt, stream updates, then finish the turn
140- return PromptResponse(stop_reason = " end_turn" , user_message_id = message_id )
138+ return PromptResponse(stop_reason = " end_turn" )
141139```
142140
143141Run it with ` run_agent() ` inside an async entrypoint and wire it to your client. Refer to:
0 commit comments