pub struct AgentBuilder { /* private fields */ }Expand description
Builds an Agent with runtime-friendly defaults.
Implementations§
Source§impl AgentBuilder
impl AgentBuilder
Sourcepub fn new(
name: impl Into<String>,
system_prompt: impl Into<String>,
) -> AgentBuilder
pub fn new( name: impl Into<String>, system_prompt: impl Into<String>, ) -> AgentBuilder
Create an agent builder from the required embedder-facing fields.
Sourcepub fn id(self, id: TypedId<AgentIdMarker>) -> AgentBuilder
pub fn id(self, id: TypedId<AgentIdMarker>) -> AgentBuilder
Set a stable agent id instead of generating one.
Sourcepub fn agent_id(&self) -> TypedId<AgentIdMarker>
pub fn agent_id(&self) -> TypedId<AgentIdMarker>
Return the id currently assigned to this builder.
pub fn name(self, name: impl Into<String>) -> AgentBuilder
pub fn display_name(self, display_name: impl Into<String>) -> AgentBuilder
pub fn description(self, description: impl Into<String>) -> AgentBuilder
pub fn system_prompt(self, system_prompt: impl Into<String>) -> AgentBuilder
pub fn default_model_id( self, default_model_id: TypedId<ModelIdMarker>, ) -> AgentBuilder
pub fn harness_id(self, harness_id: TypedId<HarnessIdMarker>) -> AgentBuilder
pub fn tag(self, tag: impl Into<String>) -> AgentBuilder
pub fn capability( self, capability: impl Into<AgentCapabilityConfig>, ) -> AgentBuilder
pub fn with_capability( self, capability: impl Into<AgentCapabilityConfig>, ) -> AgentBuilder
pub fn capabilities<I, C>(self, capabilities: I) -> AgentBuilder
pub fn initial_file(self, file: InitialFile) -> AgentBuilder
pub fn network_access(self, network_access: NetworkAccessList) -> AgentBuilder
pub fn max_iterations(self, max_iterations: usize) -> AgentBuilder
Sourcepub fn parallel_tool_calls(self, parallel_tool_calls: bool) -> AgentBuilder
pub fn parallel_tool_calls(self, parallel_tool_calls: bool) -> AgentBuilder
Set the request-level parallel tool calling preference (EVE-598).
pub fn tool(self, tool: ToolDefinition) -> AgentBuilder
pub fn tools<I>(self, tools: I) -> AgentBuilderwhere
I: IntoIterator<Item = ToolDefinition>,
pub fn mcp_servers( self, mcp_servers: BTreeMap<String, ScopedMcpServer>, ) -> AgentBuilder
pub fn status(self, status: AgentStatus) -> AgentBuilder
pub fn created_at(self, created_at: DateTime<Utc>) -> AgentBuilder
pub fn updated_at(self, updated_at: DateTime<Utc>) -> AgentBuilder
Trait Implementations§
Source§impl Clone for AgentBuilder
impl Clone for AgentBuilder
Source§fn clone(&self) -> AgentBuilder
fn clone(&self) -> AgentBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentBuilder
impl RefUnwindSafe for AgentBuilder
impl Send for AgentBuilder
impl Sync for AgentBuilder
impl Unpin for AgentBuilder
impl UnsafeUnpin for AgentBuilder
impl UnwindSafe for AgentBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request