try_tool_call_parse_stream

Function try_tool_call_parse_stream 

Source
pub async fn try_tool_call_parse_stream(
    message: &str,
    parser_str: Option<&str>,
) -> Result<(Vec<ChatCompletionMessageToolCallChunk>, Option<String>)>
Expand description

Try parsing a string as a structured tool call, for streaming (delta) usage.

If successful, returns a ChatCompletionMessageToolCallChunk.