pub struct Agent {Show 16 fields
pub id: f64,
pub name: String,
pub description: String,
pub model_id: f64,
pub provider_id: f64,
pub settings: Box<AgentSettings>,
pub status: Status,
pub access_type: AccessType,
pub total_tokens: f64,
pub used_tokens: f64,
pub remaining_tokens: f64,
pub token_package_id: f64,
pub subscription_renewal_date: DateTime<FixedOffset>,
pub knowledge_bases_ids: Vec<f64>,
pub access_id: f64,
pub created_at: DateTime<FixedOffset>,
}Expand description
Agent : AI Agent
Fields§
§id: f64Уникальный идентификатор агента
name: StringНазвание агента
description: StringОписание агента
model_id: f64ID модели
provider_id: f64ID провайдера
settings: Box<AgentSettings>§status: StatusСтатус агента
access_type: AccessTypeТип доступа к агенту
total_tokens: f64Всего токенов выделено агенту
used_tokens: f64Использовано токенов
remaining_tokens: f64Осталось токенов
token_package_id: f64ID пакета токенов
subscription_renewal_date: DateTime<FixedOffset>Дата обновления подписки
knowledge_bases_ids: Vec<f64>ID баз знаний, связанных с агентом
access_id: f64ID доступа
created_at: DateTime<FixedOffset>Дата создания агента
Implementations§
Source§impl Agent
impl Agent
Sourcepub fn new(
id: f64,
name: String,
description: String,
model_id: f64,
provider_id: f64,
settings: AgentSettings,
status: Status,
access_type: AccessType,
total_tokens: f64,
used_tokens: f64,
remaining_tokens: f64,
token_package_id: f64,
subscription_renewal_date: DateTime<FixedOffset>,
knowledge_bases_ids: Vec<f64>,
access_id: f64,
created_at: DateTime<FixedOffset>,
) -> Agent
pub fn new( id: f64, name: String, description: String, model_id: f64, provider_id: f64, settings: AgentSettings, status: Status, access_type: AccessType, total_tokens: f64, used_tokens: f64, remaining_tokens: f64, token_package_id: f64, subscription_renewal_date: DateTime<FixedOffset>, knowledge_bases_ids: Vec<f64>, access_id: f64, created_at: DateTime<FixedOffset>, ) -> Agent
AI Agent
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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