pub struct CreateAgentRequestBuilder { /* private fields */ }Available on crate feature
managed-agents-preview only.Expand description
Builder for CreateAgentRequest.
Implementations§
Source§impl CreateAgentRequestBuilder
impl CreateAgentRequestBuilder
Sourcepub fn model(self, model: impl Into<AgentModel>) -> Self
pub fn model(self, model: impl Into<AgentModel>) -> Self
Set the model. Required.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description.
Sourcepub fn mcp_server(self, server: AgentMcpServer) -> Self
pub fn mcp_server(self, server: AgentMcpServer) -> Self
Append an MCP server.
Sourcepub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
Insert a metadata entry.
Sourcepub fn callable_agent(self, callable: CallableAgent) -> Self
pub fn callable_agent(self, callable: CallableAgent) -> Self
Append a callable-agent reference (for multi-agent coordinators).
Sourcepub fn build(self) -> Result<CreateAgentRequest>
pub fn build(self) -> Result<CreateAgentRequest>
Trait Implementations§
Source§impl Debug for CreateAgentRequestBuilder
impl Debug for CreateAgentRequestBuilder
Source§impl Default for CreateAgentRequestBuilder
impl Default for CreateAgentRequestBuilder
Source§fn default() -> CreateAgentRequestBuilder
fn default() -> CreateAgentRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateAgentRequestBuilder
impl RefUnwindSafe for CreateAgentRequestBuilder
impl Send for CreateAgentRequestBuilder
impl Sync for CreateAgentRequestBuilder
impl Unpin for CreateAgentRequestBuilder
impl UnsafeUnpin for CreateAgentRequestBuilder
impl UnwindSafe for CreateAgentRequestBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.