propose
Return the result of the tool that proposes a change. The result:
- turns tool chaining back on with
back_to_back_functions("forever"); - records the proposal in
global_data.semantic_state, in an action of its own before the read-back, so it’s recorded even when the caller talks over the read-back; - says
read_backword for word, so the proposal’s dialogue starts with it; - waits for the caller’s answer.
The model is told the read-back was given, and to call the confirm tool only when the caller says yes to it, or the decline tool when they say no or want a change.
Parameters
read_back
The words to read back, ending with the question, such as "That's a large tea for pickup at five. Is that right?". Name everything the change covers, the way the
caller would say it.
raw_data
Keyword-only. The proposing tool’s SWAIG request. With it, a repeated proposal gets
the next revision number, so semantic_state changes and the platform marks a new
proposal.
details
Keyword-only. More of what the change is, kept in semantic_state with it.
result
Keyword-only. A result to add to, in place of a new one.
The recorded state is {**details, "proposal": read_back, "revision": n}.
Returns
FunctionResult — The proposing tool’s result.
Example
For item set to "large tea", the result is: