Skip to content

Commit ac10c00

Browse files
authored
a2a-go: change name to organization (#10)
* a2a-go: change name to organization * update
1 parent 305780c commit ac10c00

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.0.2 (2025-04-18)
4+
5+
- Change agent card provider `name` to `organization`
6+
37
## 0.0.1 (2025-04-18)
48

59
- Initial release

examples/auth/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func main() {
117117
Description: addressableStr("A demonstration server with JWT and API key authentication"),
118118
URL: fmt.Sprintf("http://localhost:%d", config.Port),
119119
Provider: &server.AgentProvider{
120-
Name: "Example Provider",
120+
Organization: "Example Provider",
121121
},
122122
Version: "1.0.0",
123123
Capabilities: server.AgentCapabilities{

examples/basic/client/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func displayAgentCapabilities(card *server.AgentCard) {
158158

159159
// Print provider if available
160160
if card.Provider != nil {
161-
fmt.Printf(" Provider: %s\n", card.Provider.Name)
161+
fmt.Printf(" Provider: %s\n", card.Provider.Organization)
162162
}
163163

164164
// Print capabilities

examples/basic/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ func main() {
498498
URL: serverURL,
499499
Version: "2.0.0", // Updated version
500500
Provider: &server.AgentProvider{
501-
Name: "tRPC-A2A-go Examples",
501+
Organization: "tRPC-A2A-go Examples",
502502
},
503503
Capabilities: server.AgentCapabilities{
504504
Streaming: !forceNoStream, // Support streaming based on flag

examples/simple/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func main() {
120120
URL: fmt.Sprintf("http://%s:%d/", *host, *port),
121121
Version: "1.0.0",
122122
Provider: &server.AgentProvider{
123-
Name: "tRPC-A2A-Go Example",
123+
Organization: "tRPC-A2A-Go Examples",
124124
},
125125
Capabilities: server.AgentCapabilities{
126126
Streaming: false,

examples/streaming/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func main() {
358358
URL: serverURL,
359359
Version: "1.0.0",
360360
Provider: &server.AgentProvider{
361-
Name: "tRPC-A2A-go Examples",
361+
Organization: "tRPC-A2A-go Examples",
362362
},
363363
Capabilities: server.AgentCapabilities{
364364
Streaming: true,

server/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ type AgentSkill struct {
3737

3838
// AgentProvider contains information about the agent's provider or developer.
3939
type AgentProvider struct {
40-
// Name is the name of the provider.
41-
Name string `json:"name"`
40+
// Organization is the name of the provider.
41+
Organization string `json:"organization"`
4242
// URL is an optional URL for the provider.
4343
URL *string `json:"url,omitempty"`
4444
}

0 commit comments

Comments
 (0)