-
Notifications
You must be signed in to change notification settings - Fork 33
agent: resolve agent card by a2a.Client #511
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #511 +/- ##
===================================================
- Coverage 78.13849% 78.12094% -0.01755%
===================================================
Files 195 196 +1
Lines 29879 29983 +104
===================================================
+ Hits 23347 23423 +76
- Misses 5398 5420 +22
- Partials 1134 1140 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Ageng-》 |
done,可以先过一下这个 https://github.com/trpc-group/trpc-a2a-go/pull/96,需要先合并这个 |
server/a2a/server.go
Outdated
} | ||
|
||
if options.host == "" { | ||
return nil, errors.New("host is required") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果已经有 agent card,这里对 host 的检查是否过于严格?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
agent/a2aagent/a2a_agent.go
Outdated
return nil, fmt.Errorf("failed to resolve agent card: %w", err) | ||
} | ||
agent.agentCard = agentCard | ||
// Determine the agent URL and normalize it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像没有 normalize。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
depends on trpc-group/trpc-a2a-go#96