Trait BaseLanguageModel

Source
pub trait BaseLanguageModel:
    Send
    + Sync
    + 'static {
    // Required methods
    fn model_name(&self) -> &str;
    fn model_type(&self) -> &str;

    // Provided methods
    fn supports_streaming(&self) -> bool { ... }
    fn input_schema(&self) -> Option<Value> { ... }
    fn output_schema(&self) -> Option<Value> { ... }
}
Expand description

Base trait for all language models

Required Methods§

Source

fn model_name(&self) -> &str

Get the model name

Source

fn model_type(&self) -> &str

Get the model type

Provided Methods§

Source

fn supports_streaming(&self) -> bool

Check if the model supports streaming

Source

fn input_schema(&self) -> Option<Value>

Get the input schema for this model

Source

fn output_schema(&self) -> Option<Value>

Get the output schema for this model

Implementors§