pub trait FunctionCallResponse {
    // Required method
    fn get_function_json(&self) -> Vec<(Value, usize)>;
}
Expand description

A trait for responses from function calls. This includes a method to generate a JSON representation of the function.

Required Methods§

source

fn get_function_json(&self) -> Vec<(Value, usize)>

Returns a JSON representation of the function and the count of tokens in the representation.

§Returns

A Vec of tuples where each tuple’s first element is a Value representing a JSON object of the function, and the second element is a usize representing the count of tokens in the function’s JSON representation.

Implementors§