Skip to content

Commit ad54d68

Browse files
committed
No need to check Oauth in processToolCalls
Signed-off-by: Trung Nguyen <trung.nguyen@docker.com>
1 parent 7c227c1 commit ad54d68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/runtime/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ func (r *runtime) processToolCalls(ctx context.Context, sess *session.Session, c
562562

563563
a := r.CurrentAgent()
564564
slog.Debug("Processing tool calls", "agent", a.Name(), "call_count", len(calls))
565-
agentTools, err := r.getAgentToolsWithOAuthHandling(ctx, a)
565+
agentTools, err := a.Tools(ctx)
566566
if err != nil {
567567
slog.Error("Failed to get tools for tool calls", "agent", a.Name(), "error", err)
568568
return fmt.Errorf("failed to get tools: %w", err)

0 commit comments

Comments
 (0)