Skip to main content

parse_tool_call_question

Function parse_tool_call_question 

Source
pub fn parse_tool_call_question(
    session: &str,
    name: &str,
    input_json: &str,
) -> Option<UserQuestion>
Expand description

Parses tool call JSON input into a normalized UserQuestion.

If input is invalid JSON or unknown format, gracefully falls back to a text question rather than failing or panicking.