From ad54d68da01cffd29bf13f8c42f93b34a76afba4 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Wed, 17 Sep 2025 16:29:12 +0200 Subject: [PATCH] No need to check Oauth in processToolCalls Signed-off-by: Trung Nguyen --- pkg/runtime/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runtime/runtime.go b/pkg/runtime/runtime.go index bbff47334..82ea60ee8 100644 --- a/pkg/runtime/runtime.go +++ b/pkg/runtime/runtime.go @@ -562,7 +562,7 @@ func (r *runtime) processToolCalls(ctx context.Context, sess *session.Session, c a := r.CurrentAgent() slog.Debug("Processing tool calls", "agent", a.Name(), "call_count", len(calls)) - agentTools, err := r.getAgentToolsWithOAuthHandling(ctx, a) + agentTools, err := a.Tools(ctx) if err != nil { slog.Error("Failed to get tools for tool calls", "agent", a.Name(), "error", err) return fmt.Errorf("failed to get tools: %w", err)