pub struct AgentCreateRequestBuilder { /* private fields */ }Expand description
Builder for creating AgentCreateRequest
Implementations§
Source§impl AgentCreateRequestBuilder
impl AgentCreateRequestBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the agent description
Sourcepub fn system_prompt(self, system_prompt: impl Into<String>) -> Self
pub fn system_prompt(self, system_prompt: impl Into<String>) -> Self
Set the system prompt
Sourcepub fn config(self, config: AgentConfig) -> Self
pub fn config(self, config: AgentConfig) -> Self
Set the agent configuration
Sourcepub fn build(self) -> Result<AgentCreateRequest, ZaiError>
pub fn build(self) -> Result<AgentCreateRequest, ZaiError>
Build the AgentCreateRequest
Trait Implementations§
Source§impl Default for AgentCreateRequestBuilder
impl Default for AgentCreateRequestBuilder
Source§fn default() -> AgentCreateRequestBuilder
fn default() -> AgentCreateRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentCreateRequestBuilder
impl RefUnwindSafe for AgentCreateRequestBuilder
impl Send for AgentCreateRequestBuilder
impl Sync for AgentCreateRequestBuilder
impl Unpin for AgentCreateRequestBuilder
impl UnsafeUnpin for AgentCreateRequestBuilder
impl UnwindSafe for AgentCreateRequestBuilder
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