Skip to content

Commit 6dad8fc

Browse files
committed
feat: Update A2A types from specification 🤖
1 parent 7c46e70 commit 6dad8fc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/a2a/types.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,20 @@ class UnsupportedOperationError(BaseModel):
921921
"""
922922

923923

924+
class WellKnownUris(BaseModel):
925+
"""
926+
Well-known URIs used in the A2A protocol.
927+
https://datatracker.ietf.org/doc/html/rfc8615
928+
"""
929+
930+
AGENT_CARD_WELL_KNOWN_URI: Literal['/.well-known/agent.json'] = (
931+
'/.well-known/agent.json'
932+
)
933+
"""
934+
The well-known URI at which an AgentCard should be hosted.
935+
"""
936+
937+
924938
class A2AError(
925939
RootModel[
926940
JSONParseError
@@ -1568,6 +1582,9 @@ class AgentCard(BaseModel):
15681582
- Skills: A set of capabilities the agent can perform
15691583
- Default modalities/content types supported by the agent.
15701584
- Authentication requirements
1585+
1586+
The AgentCard SHOULD be hosted at the well-known URI specified by the
1587+
`WellKnownUris.AGENT_CARD_WELL_KNOWN_URI` constant ("/.well-known/agent.json").
15711588
"""
15721589

15731590
additionalInterfaces: list[AgentInterface] | None = None

0 commit comments

Comments
 (0)