Skip to content

refactor: Change Well-Known URI Magic Strings to a Constant defined in the specification #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 1 commit
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
17 changes: 17 additions & 0 deletions src/a2a/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,20 @@
"""


class WellKnownUris(BaseModel):
"""
Well-known URIs used in the A2A protocol.
https://datatracker.ietf.org/doc/html/rfc8615

Check failure on line 927 in src/a2a/types.py

View workflow job for this annotation

GitHub Actions / Check Spelling

`ietf` is not a recognized word. (unrecognized-spelling)
"""

AGENT_CARD_WELL_KNOWN_URI: Literal['/.well-known/agent.json'] = (
'/.well-known/agent.json'
)
"""
The well-known URI at which an AgentCard should be hosted.
"""


class A2AError(
RootModel[
JSONParseError
Expand Down Expand Up @@ -1568,6 +1582,9 @@
- Skills: A set of capabilities the agent can perform
- Default modalities/content types supported by the agent.
- Authentication requirements

The AgentCard SHOULD be hosted at the well-known URI specified by the
`WellKnownUris.AGENT_CARD_WELL_KNOWN_URI` constant ("/.well-known/agent.json").
"""

additionalInterfaces: list[AgentInterface] | None = None
Expand Down
Loading