Skip to content

Commit 09db309

Browse files
formatting
1 parent dabd80e commit 09db309

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/a2a/types.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ class AgentInterface(A2ABaseModel):
110110
"""
111111

112112
transport: TransportProtocol = Field(
113-
...,
113+
...,
114114
examples=[
115-
TransportProtocol.jsonrpc,
116-
TransportProtocol.grpc,
115+
TransportProtocol.jsonrpc,
116+
TransportProtocol.grpc,
117117
TransportProtocol.http_json,
118-
]
118+
],
119119
)
120120
"""
121121
The transport protocol supported at this URL.
@@ -1037,6 +1037,7 @@ class TextPart(A2ABaseModel):
10371037
The string content of the text part.
10381038
"""
10391039

1040+
10401041
class UnsupportedOperationError(A2ABaseModel):
10411042
"""
10421043
An A2A-specific error indicating that the requested operation is not supported by the agent.
@@ -1781,12 +1782,12 @@ class AgentCard(A2ABaseModel):
17811782
A human-readable name for the agent.
17821783
"""
17831784
preferred_transport: TransportProtocol | None = Field(
1784-
default=TransportProtocol.jsonrpc,
1785+
default=TransportProtocol.jsonrpc,
17851786
examples=[
1786-
TransportProtocol.jsonrpc,
1787-
TransportProtocol.grpc,
1788-
TransportProtocol.http_json
1789-
]
1787+
TransportProtocol.jsonrpc,
1788+
TransportProtocol.grpc,
1789+
TransportProtocol.http_json,
1790+
],
17901791
)
17911792
"""
17921793
The transport protocol for the preferred endpoint (the main 'url' field).

0 commit comments

Comments
 (0)