add_gather_question
add_gather_question
Add a question to this step’s gather_info configuration.
set_gather_info()
must be called before this method.
Parameters
key
Key name for storing the answer in global_data. Must be unique within
this step’s gather questions.
question
The question text to present to the caller.
type
JSON schema type for the answer parameter.
"string"— text value"integer"— whole number value"number"— numeric value including decimals"boolean"— true or false value
confirm
When True, the AI must confirm the answer with the caller before accepting it.
prompt
Extra instruction text appended for this specific question.
functions
Additional function names to make visible while asking this question.
Returns
Step — Self for method chaining. Raises ValueError if set_gather_info()
has not been called first.