parse_tool_call_from_message

Function parse_tool_call_from_message 

Source
pub fn parse_tool_call_from_message(
    _tool_call_id: &str,
    function_name: &str,
    arguments_str: &str,
) -> Option<(String, Value)>
Expand description

Parses a tool call from OpenAI’s ChatCompletionResponseMessage Expects the tool call to be in the message’s tool_calls array