Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion examples/echo_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from uuid import uuid4

from acp import (
PROTOCOL_VERSION,
Agent,
InitializeResponse,
NewSessionResponse,
Expand Down Expand Up @@ -44,7 +45,7 @@ async def initialize(
client_info: Implementation | None = None,
**kwargs: Any,
) -> InitializeResponse:
return InitializeResponse(protocol_version=protocol_version)
return InitializeResponse(protocol_version=PROTOCOL_VERSION)

async def new_session(
self,
Expand Down
3 changes: 2 additions & 1 deletion examples/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from uuid import uuid4

from acp import (
PROTOCOL_VERSION,
Agent,
InitializeResponse,
NewSessionResponse,
Expand All @@ -44,7 +45,7 @@ async def initialize(
client_info: Implementation | None = None,
**kwargs: Any,
) -> InitializeResponse:
return InitializeResponse(protocol_version=protocol_version)
return InitializeResponse(protocol_version=PROTOCOL_VERSION)

async def new_session(self, cwd: str = "", **kwargs: Any) -> NewSessionResponse:
return NewSessionResponse(session_id=uuid4().hex)
Expand Down