Skip to content

Commit 1197b60

Browse files
fix(a2a): type of AgentCard.Security (#535)
1 parent 02fa900 commit 1197b60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

a2a/extension/eino/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type ServerConfig struct {
7171
DocumentationURL string
7272
Provider *models.AgentProvider
7373
SecuritySchemes map[string]*spec.SecurityScheme
74-
Security map[string][]string
74+
Security []map[string][]string
7575
DefaultInputModes []string
7676
DefaultOutputModes []string
7777
Skills []models.AgentSkill

a2a/models/card.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type AgentCard struct {
114114
/** Security scheme details used for authenticating with this agent. */
115115
SecuritySchemes map[string]*spec.SecurityScheme `json:"securitySchemes,omitempty"`
116116
/** Security requirements for contacting the agent. */
117-
Security map[string][]string `json:"security,omitempty"`
117+
Security []map[string][]string `json:"security,omitempty"`
118118
/**
119119
* The set of interaction modes that the agent supports across all skills. This can be overridden per-skill.
120120
* Supported media types for input.

a2a/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type AgentCardConfig struct {
8686
Provider *models.AgentProvider
8787

8888
SecuritySchemes map[string]*spec.SecurityScheme
89-
Security map[string][]string
89+
Security []map[string][]string
9090
DefaultInputModes []string
9191
DefaultOutputModes []string
9292
Skills []models.AgentSkill

0 commit comments

Comments
 (0)