Skip to content

Commit c7182b1

Browse files
fix: update TransportProtocol enum values to uppercase for Python consistency
1 parent 09db309 commit c7182b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/a2a/types.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class TransportProtocol(str, Enum):
9898
Supported A2A transport protocols.
9999
"""
100100

101-
jsonrpc = 'JSONRPC'
102-
grpc = 'GRPC'
103-
http_json = 'HTTP+JSON'
101+
JSONRPC = 'JSONRPC'
102+
GRPC = 'GRPC'
103+
HTTP_JSON = 'HTTP+JSON'
104104

105105

106106
class AgentInterface(A2ABaseModel):
@@ -112,9 +112,9 @@ class AgentInterface(A2ABaseModel):
112112
transport: TransportProtocol = Field(
113113
...,
114114
examples=[
115-
TransportProtocol.jsonrpc,
116-
TransportProtocol.grpc,
117-
TransportProtocol.http_json,
115+
TransportProtocol.JSONRPC,
116+
TransportProtocol.GRPC,
117+
TransportProtocol.HTTP_JSON,
118118
],
119119
)
120120
"""
@@ -1782,11 +1782,11 @@ class AgentCard(A2ABaseModel):
17821782
A human-readable name for the agent.
17831783
"""
17841784
preferred_transport: TransportProtocol | None = Field(
1785-
default=TransportProtocol.jsonrpc,
1785+
default=TransportProtocol.JSONRPC,
17861786
examples=[
1787-
TransportProtocol.jsonrpc,
1788-
TransportProtocol.grpc,
1789-
TransportProtocol.http_json,
1787+
TransportProtocol.JSONRPC,
1788+
TransportProtocol.GRPC,
1789+
TransportProtocol.HTTP_JSON,
17901790
],
17911791
)
17921792
"""

0 commit comments

Comments
 (0)