pub struct AgentCreationRequest {
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 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.
version_message: Option<Option<String>>Implementations§
Source§impl AgentCreationRequest
impl AgentCreationRequest
pub fn new(model: String, name: String) -> AgentCreationRequest
Trait Implementations§
Source§impl Clone for AgentCreationRequest
impl Clone for AgentCreationRequest
Source§fn clone(&self) -> AgentCreationRequest
fn clone(&self) -> AgentCreationRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentCreationRequest
impl Debug for AgentCreationRequest
Source§impl Default for AgentCreationRequest
impl Default for AgentCreationRequest
Source§fn default() -> AgentCreationRequest
fn default() -> AgentCreationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentCreationRequest
impl<'de> Deserialize<'de> for AgentCreationRequest
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 AgentCreationRequest
impl PartialEq for AgentCreationRequest
Source§impl Serialize for AgentCreationRequest
impl Serialize for AgentCreationRequest
impl StructuralPartialEq for AgentCreationRequest
Auto Trait Implementations§
impl Freeze for AgentCreationRequest
impl RefUnwindSafe for AgentCreationRequest
impl Send for AgentCreationRequest
impl Sync for AgentCreationRequest
impl Unpin for AgentCreationRequest
impl UnsafeUnpin for AgentCreationRequest
impl UnwindSafe for AgentCreationRequest
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