Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§