pub struct AgentModelSettings {
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub max_tokens: Option<f64>,
pub frequency_penalty: Option<f64>,
pub presence_penalty: Option<f64>,
}Expand description
AgentModelSettings : Настройки модели агента
Fields§
§temperature: Option<f64>Контролирует случайность вывода модели.
top_p: Option<f64>Контролирует разнообразие вывода модели.
max_tokens: Option<f64>Максимальное количество токенов в выводе.
frequency_penalty: Option<f64>Положительные значения штрафуют новые токены на основе их существующей частоты.
presence_penalty: Option<f64>Положительные значения штрафуют новые токены на основе того, встречались ли они в тексте ранее.
Implementations§
Source§impl AgentModelSettings
impl AgentModelSettings
Sourcepub fn new() -> AgentModelSettings
pub fn new() -> AgentModelSettings
Настройки модели агента
Trait Implementations§
Source§impl Clone for AgentModelSettings
impl Clone for AgentModelSettings
Source§fn clone(&self) -> AgentModelSettings
fn clone(&self) -> AgentModelSettings
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 AgentModelSettings
impl Debug for AgentModelSettings
Source§impl Default for AgentModelSettings
impl Default for AgentModelSettings
Source§fn default() -> AgentModelSettings
fn default() -> AgentModelSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentModelSettings
impl<'de> Deserialize<'de> for AgentModelSettings
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 AgentModelSettings
impl PartialEq for AgentModelSettings
Source§fn eq(&self, other: &AgentModelSettings) -> bool
fn eq(&self, other: &AgentModelSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentModelSettings
impl Serialize for AgentModelSettings
impl StructuralPartialEq for AgentModelSettings
Auto Trait Implementations§
impl Freeze for AgentModelSettings
impl RefUnwindSafe for AgentModelSettings
impl Send for AgentModelSettings
impl Sync for AgentModelSettings
impl Unpin for AgentModelSettings
impl UnsafeUnpin for AgentModelSettings
impl UnwindSafe for AgentModelSettings
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