-
Notifications
You must be signed in to change notification settings - Fork 496
feat: add per-agent A2A client timeout configuration #1615
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -745,12 +745,16 @@ func (a *adkApiTranslator) translateInlineAgent(ctx context.Context, agent *v1al | |
| } | ||
| } | ||
|
|
||
| cfg.RemoteAgents = append(cfg.RemoteAgents, adk.RemoteAgentConfig{ | ||
| remoteAgent := adk.RemoteAgentConfig{ | ||
| Name: utils.ConvertToPythonIdentifier(utils.GetObjectRef(toolAgent)), | ||
| Url: targetURL, | ||
| Headers: headers, | ||
| Description: toolAgent.Spec.Description, | ||
| }) | ||
| } | ||
| if tool.Agent.Timeout != nil { | ||
| remoteAgent.Timeout = tool.Agent.Timeout | ||
| } | ||
| cfg.RemoteAgents = append(cfg.RemoteAgents, remoteAgent) | ||
|
Comment on lines
+754
to
+757
|
||
| default: | ||
| return nil, nil, nil, fmt.Errorf("unknown agent type: %s", toolAgent.Spec.Type) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2238,6 +2238,11 @@ spec: | |
| Can either be a reference to the name of an Agent in the same namespace as the referencing Agent, or a reference to the name of an Agent in a different namespace in the form <namespace>/<name> | ||
| minLength: 1 | ||
| type: string | ||
| timeout: | ||
| description: A2A client read timeout in seconds for calls | ||
| to this agent. Defaults to 600s if unset. | ||
| format: double | ||
| type: number | ||
|
Comment on lines
+2241
to
+2245
|
||
| type: object | ||
| mcpServer: | ||
| properties: | ||
|
|
||
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.
The TypedReference struct has been modified with a new Timeout field, but the generated deepcopy code in zz_generated.deepcopy.go was not regenerated. While the current simple
*out = *inassignment works correctly for this case (all fields are scalar types), it's important thatmake generateis run to properly update all generated code. The PR description mentions controller-gen wasn't available during development, but this must be done before merging.