pub struct AgentCreateRequest {
pub name: String,
pub description: Option<String>,
pub system_prompt: Option<String>,
pub model: Option<String>,
pub tools: Option<Vec<Value>>,
pub config: Option<AgentConfig>,
}Expand description
Request to create a new AI agent
Fields§
§name: StringAgent name (required)
description: Option<String>Agent description (optional)
system_prompt: Option<String>System prompt for the agent (optional)
model: Option<String>Model to use (optional, defaults to glm-4.5)
tools: Option<Vec<Value>>Tools available to the agent (optional)
config: Option<AgentConfig>Agent configuration (optional)
Implementations§
Source§impl AgentCreateRequest
impl AgentCreateRequest
Sourcepub fn builder() -> AgentCreateRequestBuilder
pub fn builder() -> AgentCreateRequestBuilder
Create a builder for AgentCreateRequest
Trait Implementations§
Source§impl Clone for AgentCreateRequest
impl Clone for AgentCreateRequest
Source§fn clone(&self) -> AgentCreateRequest
fn clone(&self) -> AgentCreateRequest
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 AgentCreateRequest
impl Debug for AgentCreateRequest
Source§impl<'de> Deserialize<'de> for AgentCreateRequest
impl<'de> Deserialize<'de> for AgentCreateRequest
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 Serialize for AgentCreateRequest
impl Serialize for AgentCreateRequest
Source§impl Validate for AgentCreateRequest
impl Validate for AgentCreateRequest
Source§impl<'v_a> ValidateArgs<'v_a> for AgentCreateRequest
impl<'v_a> ValidateArgs<'v_a> for AgentCreateRequest
Auto Trait Implementations§
impl Freeze for AgentCreateRequest
impl RefUnwindSafe for AgentCreateRequest
impl Send for AgentCreateRequest
impl Sync for AgentCreateRequest
impl Unpin for AgentCreateRequest
impl UnsafeUnpin for AgentCreateRequest
impl UnwindSafe for AgentCreateRequest
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