pub struct CreateAgent {
pub name: String,
pub description: Option<String>,
pub access_type: AccessType,
pub model_id: f64,
pub token_package_id: f64,
pub settings: Box<AgentSettings>,
pub project_id: Option<f64>,
}Expand description
CreateAgent : Данные для создания AI агента
Fields§
§name: StringНазвание агента
description: Option<String>Описание агента
access_type: AccessTypeТип доступа к агенту
model_id: f64ID модели
token_package_id: f64ID пакета токенов
settings: Box<AgentSettings>§project_id: Option<f64>ID проекта
Implementations§
Source§impl CreateAgent
impl CreateAgent
Sourcepub fn new(
name: String,
access_type: AccessType,
model_id: f64,
token_package_id: f64,
settings: AgentSettings,
) -> CreateAgent
pub fn new( name: String, access_type: AccessType, model_id: f64, token_package_id: f64, settings: AgentSettings, ) -> CreateAgent
Данные для создания AI агента
Trait Implementations§
Source§impl Clone for CreateAgent
impl Clone for CreateAgent
Source§fn clone(&self) -> CreateAgent
fn clone(&self) -> CreateAgent
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 CreateAgent
impl Debug for CreateAgent
Source§impl Default for CreateAgent
impl Default for CreateAgent
Source§fn default() -> CreateAgent
fn default() -> CreateAgent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAgent
impl<'de> Deserialize<'de> for CreateAgent
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 CreateAgent
impl PartialEq for CreateAgent
Source§fn eq(&self, other: &CreateAgent) -> bool
fn eq(&self, other: &CreateAgent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateAgent
impl Serialize for CreateAgent
impl StructuralPartialEq for CreateAgent
Auto Trait Implementations§
impl Freeze for CreateAgent
impl RefUnwindSafe for CreateAgent
impl Send for CreateAgent
impl Sync for CreateAgent
impl Unpin for CreateAgent
impl UnsafeUnpin for CreateAgent
impl UnwindSafe for CreateAgent
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