Skip to content

Commit f0cf50f

Browse files
authored
Merge pull request #164 from nextcloud/fix/deny-reason
Fix: optimize tool call denied instruction
2 parents 5a1defe + 717470a commit f0cf50f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ex_app/lib/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async def call_model(
171171
"messages": [
172172
ToolMessage(
173173
tool_call_id=tool_call["id"],
174-
content=f"API call denied by user. Reasoning: '{task['input']['input']}'. Continue assisting, accounting for the user's input.",
174+
content=f"API call denied by user. Reasoning: '{task['input']['input']}'. Continue assisting, accounting for the user's input. If the user gave additional instructrions, adapt the tool call.",
175175
)
176176
for tool_call in state_snapshot.values['messages'][-1].tool_calls
177177
]

0 commit comments

Comments
 (0)