Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/chatwithtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ def _process_single_input(self, input_data: dict[str, Any]) -> dict[str, Any]:
for tool_message in tool_messages:
message_content = """
The result of your tool call for the tool "{tool_name}" is the following:

===
{tool_call_result}
===

You can now formulate this in natural language for the user. Do not mention that you called a tool.
""".format(tool_call_result=tool_message['content'], tool_name=tool_message['name'])
messages.append(HumanMessage(
Expand Down
Loading