pub struct Agent {Show 18 fields
pub instructions: Option<Option<String>>,
pub tools: Option<Vec<ToolsInner>>,
pub completion_args: Option<Box<CompletionArgs>>,
pub guardrails: Option<Option<Vec<GuardrailConfig>>>,
pub model: String,
pub name: String,
pub description: Option<Option<String>>,
pub handoffs: Option<Option<Vec<String>>>,
pub metadata: Option<Option<HashMap<String, Value>>>,
pub object: Option<Object>,
pub id: String,
pub version: i32,
pub versions: Vec<i32>,
pub created_at: String,
pub updated_at: String,
pub deployment_chat: bool,
pub source: String,
pub version_message: Option<Option<String>>,
}Fields§
§instructions: Option<Option<String>>§tools: Option<Vec<ToolsInner>>List of tools which are available to the model during the conversation.
completion_args: Option<Box<CompletionArgs>>Completion arguments that will be used to generate assistant responses. Can be overridden at each message request.
guardrails: Option<Option<Vec<GuardrailConfig>>>§model: String§name: String§description: Option<Option<String>>§handoffs: Option<Option<Vec<String>>>§metadata: Option<Option<HashMap<String, Value>>>Custom type for metadata with embedded validation.
object: Option<Object>§id: String§version: i32§versions: Vec<i32>§created_at: String§updated_at: String§deployment_chat: bool§source: String§version_message: Option<Option<String>>Implementations§
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