pub struct BehaviorModelConfig {
pub llm_provider: String,
pub model: String,
pub api_key: Option<String>,
pub api_endpoint: Option<String>,
pub temperature: f64,
pub max_tokens: usize,
pub rules: BehaviorRules,
}Expand description
Behavior model configuration
Fields§
§llm_provider: StringLLM provider (openai, anthropic, ollama, openai-compatible)
model: StringModel name (e.g., gpt-4, claude-3-opus, llama2)
api_key: Option<String>API key (optional, can use environment variable)
api_endpoint: Option<String>API endpoint (optional, uses provider default)
temperature: f64Temperature for LLM generation (0.0 to 2.0)
max_tokens: usizeMaximum tokens for LLM response
rules: BehaviorRulesBehavior rules
Trait Implementations§
Source§impl Clone for BehaviorModelConfig
impl Clone for BehaviorModelConfig
Source§fn clone(&self) -> BehaviorModelConfig
fn clone(&self) -> BehaviorModelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BehaviorModelConfig
impl Debug for BehaviorModelConfig
Source§impl Default for BehaviorModelConfig
impl Default for BehaviorModelConfig
Source§impl<'de> Deserialize<'de> for BehaviorModelConfig
impl<'de> Deserialize<'de> for BehaviorModelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BehaviorModelConfig
impl RefUnwindSafe for BehaviorModelConfig
impl Send for BehaviorModelConfig
impl Sync for BehaviorModelConfig
impl Unpin for BehaviorModelConfig
impl UnsafeUnpin for BehaviorModelConfig
impl UnwindSafe for BehaviorModelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more