Explain an unresolvable agent address in agents chat - #60
Merged
Conversation
`agents chat` speaks A2A straight to the agent, at the URL from its agent card, so a cluster-internal hostname fails with "no such host" even though the API server was reachable enough to serve the card. Report that on stderr and suggest --address, with an example built from the agent's own namespace and name. Matched on *net.DNSError with IsNotFound rather than the error text: the a2a client wraps the failure twice over, but the chain survives errors.As, and the type keeps a nonexistent name distinct from a resolver timeout or a refused connection. The hint is supplied by `agents chat` rather than built in the shared send path, so `a2a send` stays silent about an address its user typed. Assisted by Claude. Signed-off-by: Ed Snible <snible@us.ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #59
agents chatspeaks A2A directly to the agent, at the URL from its agent card, so a cluster-internal hostname fails withno such hosteven though the API server was reachable enough to serve the card. That failure now explains itself on stderr:It would be better if the API server gave a better URL for the agent card, but I chose to contain this as a hint within the CLI.
Assisted by Claude.
Signed-off-by: Ed Snible snible@us.ibm.com