You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r.addToolErrorResponse(ctx, sess, toolCall, errTool, events, a, fmt.Sprintf("Tool '%s' is not available. You can only use the tools provided to you.", toolCall.Function.Name))
1460
+
callSpan.SetStatus(codes.Error, "tool not available")
1461
+
callSpan.End()
1462
+
continue
1463
+
}
1454
1464
1465
+
// Pick the handler: runtime-managed tools (transfer_task, handoff)
1466
+
// have dedicated handlers; everything else goes through the toolset.
slog.Warn("Tool call rejected: tool not available to agent", "agent", a.Name(), "tool", toolCall.Function.Name, "session_id", sess.ID)
1459
-
r.addToolErrorResponse(ctx, sess, toolCall, def.tool, events, a, fmt.Sprintf("Tool '%s' is not available to this agent (%s).", toolCall.Function.Name, a.Name()))
1460
-
callSpan.SetStatus(codes.Error, "tool not available to agent")
1461
-
callSpan.End()
1462
-
continue
1463
-
}
1464
-
tool=def.tool
1465
-
runTool=func() { r.runAgentTool(callCtx, def.handler, sess, toolCall, def.tool, events, a) }
0 commit comments