Skip to content

Commit 1a22e95

Browse files
SStasclaude
andcommitted
Fix stale 0.4.2 references in handshake.py
Use AVP_VERSION_STRING constant instead of hardcoded version string. Missed in the v0.5.0 release. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 114af0a commit 1a22e95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/avp/handshake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import Any, Dict, Optional
1414

1515
from .errors import HandshakeError
16-
from .types import CommunicationMode, ModelIdentity, SessionInfo
16+
from .types import AVP_VERSION_STRING, CommunicationMode, ModelIdentity, SessionInfo
1717

1818
logger = logging.getLogger(__name__)
1919

@@ -23,7 +23,7 @@ class HelloMessage:
2323
"""Message exchanged during AVP handshake."""
2424

2525
agent_id: str = ""
26-
avp_version: str = "0.4.2"
26+
avp_version: str = AVP_VERSION_STRING
2727
identity: Optional[ModelIdentity] = None
2828
capabilities: Dict[str, Any] = field(default_factory=dict)
2929

@@ -44,7 +44,7 @@ def from_dict(cls, d: Dict[str, Any]) -> "HelloMessage":
4444
identity = ModelIdentity.from_dict(d["identity"])
4545
return cls(
4646
agent_id=d.get("agent_id", ""),
47-
avp_version=d.get("avp_version", "0.4.2"),
47+
avp_version=d.get("avp_version", AVP_VERSION_STRING),
4848
identity=identity,
4949
capabilities=d.get("capabilities", {}),
5050
)

0 commit comments

Comments
 (0)