Skip to content

Commit aed3fe0

Browse files
authored
Update graph.py
1 parent c4339c4 commit aed3fe0

File tree

1 file changed

+1
-1
lines changed
  • src/codegen/extensions/langchain

1 file changed

+1
-1
lines changed

src/codegen/extensions/langchain/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def get_field_descriptions(tool_obj):
455455
return f"Error: Could not identify the tool you're trying to use.\n\nAvailable tools:\n{available_tools}\n\nPlease use one of the available tools with the correct parameters."
456456

457457
# For other types of errors
458-
return f"Error executing tool: {error_msg}\n\nPlease check your tool usage and try again with the correct parameters."
458+
return f"Error executing tool: {exception!s}\n\nPlease check your tool usage and try again with the correct parameters."
459459

460460
# Add nodes
461461
builder.add_node("reasoner", self.reasoner, retry=retry_policy)

0 commit comments

Comments
 (0)