pub struct Config {Show 22 fields
pub model: String,
pub base_url: String,
pub request_timeout: u64,
pub proxy_url: Option<String>,
pub proxy_username: Option<String>,
pub proxy_password: Option<String>,
pub danger_accept_invalid_certs: bool,
pub temperature: f32,
pub top_p: f32,
pub presence_penalty: f32,
pub frequency_penalty: f32,
pub max_tokens: u32,
pub max_iterations: usize,
pub show_token_usage: bool,
pub concise_reasoning: bool,
pub debug: bool,
pub system_prompt: String,
pub max_tool_output_chars: usize,
pub max_context_chars: usize,
pub thinking_enabled: bool,
pub reasoning_effort: Option<String>,
pub json_mode: bool,
}Fields§
§model: String§base_url: String§request_timeout: u64§proxy_url: Option<String>§proxy_username: Option<String>§proxy_password: Option<String>§danger_accept_invalid_certs: bool§temperature: f32§top_p: f32§presence_penalty: f32§frequency_penalty: f32§max_tokens: u32§max_iterations: usize§show_token_usage: bool§concise_reasoning: bool§debug: bool§system_prompt: String§max_tool_output_chars: usize§max_context_chars: usize§thinking_enabled: bool§reasoning_effort: Option<String>§json_mode: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more