Merged
fix(registry): keep A2A extension fields on agent cards #347
庄昭雄Add on Oct 18
fix(registry): keep A2A extension fields on agent cards #347
Merged
Total: 2 files changed+41-0
| @@ -40,6 +40,8 @@ class SkillData(BaseModel): | |||
| 40 | # --- A2A Agent Card (aligned with A2A protocol spec) --- | 40 | # --- A2A Agent Card (aligned with A2A protocol spec) --- |
| 41 | 41 | ||
| 42 | class AgentSkill(BaseModel): | 42 | class AgentSkill(BaseModel): |
| 43 | + model_config = ConfigDict(extra="allow") | ||
| 44 | + | ||
| 43 | id: str = "" | 45 | id: str = "" |
| 44 | name: str | 46 | name: str |
| 45 | description: str = "" | 47 | description: str = "" |
| @@ -50,11 +52,15 @@ class AgentSkill(BaseModel): | |||
| 50 | 52 | ||
| 51 | 53 | ||
| 52 | class AgentProvider(BaseModel): | 54 | class AgentProvider(BaseModel): |
| 55 | + model_config = ConfigDict(extra="allow") | ||
| 56 | + | ||
| 53 | organization: str = "" | 57 | organization: str = "" |
| 54 | url: str = "" | 58 | url: str = "" |
| 55 | 59 | ||
| 56 | 60 | ||
| 57 | class AgentCapabilities(BaseModel): | 61 | class AgentCapabilities(BaseModel): |
| 62 | + model_config = ConfigDict(extra="allow") | ||
| 63 | + | ||
| 58 | streaming: bool = False | 64 | streaming: bool = False |
| 59 | pushNotifications: bool = False | 65 | pushNotifications: bool = False |
| 60 | stateTransitionHistory: bool = False | 66 | stateTransitionHistory: bool = False |
AAgentRegistry/tests/registered/test_agent_card_extensions.py+35-0File content is under review, please try again later