pub struct AgentSettings {
pub model: Box<AgentModelSettings>,
pub system_prompt: String,
pub refine_query: bool,
pub widget: Option<Box<AgentSettingsWidget>>,
}Expand description
AgentSettings : Настройки агента
Fields§
§model: Box<AgentModelSettings>§system_prompt: StringСистемный промпт
refine_query: boolУточнять ли запрос перед обработкой
widget: Option<Box<AgentSettingsWidget>>Implementations§
Source§impl AgentSettings
impl AgentSettings
Sourcepub fn new(
model: AgentModelSettings,
system_prompt: String,
refine_query: bool,
) -> AgentSettings
pub fn new( model: AgentModelSettings, system_prompt: String, refine_query: bool, ) -> AgentSettings
Настройки агента
Trait Implementations§
Source§impl Clone for AgentSettings
impl Clone for AgentSettings
Source§fn clone(&self) -> AgentSettings
fn clone(&self) -> AgentSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentSettings
impl Debug for AgentSettings
Source§impl Default for AgentSettings
impl Default for AgentSettings
Source§fn default() -> AgentSettings
fn default() -> AgentSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentSettings
impl<'de> Deserialize<'de> for AgentSettings
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
Source§impl PartialEq for AgentSettings
impl PartialEq for AgentSettings
Source§fn eq(&self, other: &AgentSettings) -> bool
fn eq(&self, other: &AgentSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentSettings
impl Serialize for AgentSettings
impl StructuralPartialEq for AgentSettings
Auto Trait Implementations§
impl Freeze for AgentSettings
impl RefUnwindSafe for AgentSettings
impl Send for AgentSettings
impl Sync for AgentSettings
impl Unpin for AgentSettings
impl UnsafeUnpin for AgentSettings
impl UnwindSafe for AgentSettings
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