Skip to content

Commit 538c620

Browse files
committed
enh: Add log statement for each tool call
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 1c3bce4 commit 538c620

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ex_app/lib/graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def route_tools(state: AgentState):
6060
# This assumes single tool calls. To handle parallel tool calling, you'd want to
6161
# use an ANY condition
6262
first_tool_call = ai_message.tool_calls[0]
63+
print('Tool call: ', first_tool_call)
6364
if first_tool_call["name"] in dangerous_tool_names:
6465
return "dangerous_tools"
6566
return "safe_tools"

0 commit comments

Comments
 (0)