pub struct CreateAgentBuilder { /* private fields */ }Expand description
Builder for creating a agent
Implementations§
Source§impl CreateAgentBuilder
impl CreateAgentBuilder
Sourcepub fn with_description(self, description: impl Into<Option<String>>) -> Self
pub fn with_description(self, description: impl Into<Option<String>>) -> Self
An LLM-readable description of what the agent does and the inputs it expects.
Sourcepub fn with_capabilities<I>(self, capabilities: I) -> Selfwhere
I: IntoIterator<Item = String>,
pub fn with_capabilities<I>(self, capabilities: I) -> Selfwhere
I: IntoIterator<Item = String>,
Capability identifiers advertised by the agent.
Sourcepub fn with_input_schema(self, input_schema: impl Into<Option<String>>) -> Self
pub fn with_input_schema(self, input_schema: impl Into<Option<String>>) -> Self
A JSON Schema (encoded as a JSON string) describing the expected input.
Sourcepub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
pub fn with_comment(self, comment: impl Into<Option<String>>) -> Self
User-provided free-form text description.
Trait Implementations§
Source§impl IntoFuture for CreateAgentBuilder
impl IntoFuture for CreateAgentBuilder
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateAgentBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateAgentBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CreateAgentBuilder
impl !UnwindSafe for CreateAgentBuilder
impl Freeze for CreateAgentBuilder
impl Send for CreateAgentBuilder
impl Sync for CreateAgentBuilder
impl Unpin for CreateAgentBuilder
impl UnsafeUnpin for CreateAgentBuilder
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