confirm_gates
confirm_gates
Return the confirm tool’s semantic gates. Pass them as gates= to
define_tool() for the confirm tool. Each gate is judged on the
proposal’s dialogue (dialogue="proposal"), with the Proposal’s threshold:
When a gate fails, the model is told that the confirm tool didn’t run and why. After an
answered failure, the model is told to finish reading the change back and ask for a
plain yes or no. After an agreed or read_back failure, its tool prompt quotes the
proposal as ${global_data.semantic_state.proposal}, which the platform expands from
the call’s data, and names the decline tool when one is set.
Each failure also turns tool chaining off with back_to_back_functions(False), so the
model answers in words before it calls a tool again. With unclear=True on the
Proposal, each gate also sets unclear and an on_unclear that reads the change back
and asks for a plain yes or no.
Returns
list[SemanticGate] — The answered, agreed, and read_back gates, in that order.
Example
The agreed gate renders as: