Skip to main content

CallResult

Type Alias CallResult 

Source
pub(crate) type CallResult = Result<String>;
Expand description

What a tool call returns: the text for the model, or the error to show it.

Aliased Type§

pub(crate) enum CallResult {
    Ok(String),
    Err(Error),
}

Variants§

§1.0.0

Ok(String)

Contains the success value

§1.0.0

Err(Error)

Contains the error value