Skip to content

Commit 2673e2e

Browse files
authored
Merge pull request #230 from trungutt/fix-start-tools
No need to check Oauth in processToolCalls
2 parents 7c227c1 + ad54d68 commit 2673e2e

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)