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§
Sourcefn model_name(&self) -> &str
fn model_name(&self) -> &str
Get the model name
Sourcefn model_type(&self) -> &str
fn model_type(&self) -> &str
Get the model type
Provided Methods§
Sourcefn supports_streaming(&self) -> bool
fn supports_streaming(&self) -> bool
Check if the model supports streaming
Sourcefn input_schema(&self) -> Option<Value>
fn input_schema(&self) -> Option<Value>
Get the input schema for this model
Sourcefn output_schema(&self) -> Option<Value>
fn output_schema(&self) -> Option<Value>
Get the output schema for this model