ResponseContent

Trait ResponseContent 

Source
pub trait ResponseContent {
    // Required method
    fn content(&self) -> String;
}
Expand description

A trait for extracting the content from a language model’s response.

Required Methods§

Source

fn content(&self) -> String

Retrieves the main content from the response.

§Returns

A string containing the text content of the response.

Implementors§