complete
Record that the change was carried out, in place of the proposal. The result sets
global_data.semantic_state to {"done": summary}, and its first action turns tool
chaining back on with back_to_back_functions("forever").
Write what was done rather than clearing the state: a state that changes starts the next proposal dialogue there, and the model and the gates see what’s settled.
Parameters
summary
What was done, such as "Order 4471 is placed". Without result, it’s also the tool
result the model gets.
result
The confirm tool’s result, to add to.
Returns
FunctionResult — The confirm tool’s result.