Merged
fix(registry): keep A2A extension fields on agent cards #347
fix(registry): keep A2A extension fields on agent cards #347
Merged
庄昭雄Add on Oct 18
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 
42class AgentSkill(BaseModel):42class AgentSkill(BaseModel):
43+ model_config = ConfigDict(extra="allow")
44+ 
43 id: str = ""45 id: str = ""
44 name: str46 name: str
45 description: str = ""47 description: str = ""
@@ -50,11 +52,15 @@ class AgentSkill(BaseModel):
50 52 
51 53 
52class AgentProvider(BaseModel):54class 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 
57class AgentCapabilities(BaseModel):61class AgentCapabilities(BaseModel):
62+ model_config = ConfigDict(extra="allow")
63+ 
58 streaming: bool = False64 streaming: bool = False
59 pushNotifications: bool = False65 pushNotifications: bool = False
60 stateTransitionHistory: bool = False66 stateTransitionHistory: bool = False
AAgentRegistry/tests/registered/test_agent_card_extensions.py+35-0File content is under review, please try again later