steps_offering
steps_offering
List the steps whose function list offers a tool, including the function lists of their gather questions.
A step without set_functions() isn’t counted: it keeps
whatever was active before it, so what it offers depends on the step the call
came from. When the model calls a tool the current step doesn’t offer, the
platform’s reply names the same steps.
Parameters
function
The tool’s name.
Returns
list[tuple[str, str]] — (context, step) pairs in order. Empty when no step
lists the tool, which also triggers the
tool_offered_by_no_step warning when every step lists its
functions.