pub struct HarnessBuilder { /* private fields */ }Expand description
Implementations§
Source§impl HarnessBuilder
impl HarnessBuilder
Sourcepub fn new(
name: impl Into<String>,
system_prompt: impl Into<String>,
) -> HarnessBuilder
pub fn new( name: impl Into<String>, system_prompt: impl Into<String>, ) -> HarnessBuilder
Create a harness builder from the required embedder-facing fields.
Sourcepub fn id(self, id: TypedId<HarnessIdMarker>) -> HarnessBuilder
pub fn id(self, id: TypedId<HarnessIdMarker>) -> HarnessBuilder
Set a stable harness id instead of generating one.
Sourcepub fn harness_id(&self) -> TypedId<HarnessIdMarker>
pub fn harness_id(&self) -> TypedId<HarnessIdMarker>
Return the id currently assigned to this builder.
pub fn name(self, name: impl Into<String>) -> HarnessBuilder
pub fn display_name(self, display_name: impl Into<String>) -> HarnessBuilder
pub fn description(self, description: impl Into<String>) -> HarnessBuilder
pub fn system_prompt(self, system_prompt: impl Into<String>) -> HarnessBuilder
pub fn parent_harness_id( self, parent_harness_id: TypedId<HarnessIdMarker>, ) -> HarnessBuilder
pub fn default_model_id( self, default_model_id: TypedId<ModelIdMarker>, ) -> HarnessBuilder
pub fn tag(self, tag: impl Into<String>) -> HarnessBuilder
pub fn capability( self, capability: impl Into<AgentCapabilityConfig>, ) -> HarnessBuilder
pub fn with_capability( self, capability: impl Into<AgentCapabilityConfig>, ) -> HarnessBuilder
pub fn capabilities<I, C>(self, capabilities: I) -> HarnessBuilder
pub fn initial_file(self, file: InitialFile) -> HarnessBuilder
pub fn network_access(self, network_access: NetworkAccessList) -> HarnessBuilder
Sourcepub fn parallel_tool_calls(self, parallel_tool_calls: bool) -> HarnessBuilder
pub fn parallel_tool_calls(self, parallel_tool_calls: bool) -> HarnessBuilder
Set the request-level parallel tool calling preference (EVE-598).
pub fn mcp_servers( self, mcp_servers: BTreeMap<String, ScopedMcpServer>, ) -> HarnessBuilder
pub fn metadata_entry( self, key: impl Into<String>, value: impl Into<String>, ) -> HarnessBuilder
pub fn metadata_entries<I, K, V>(self, entries: I) -> HarnessBuilder
Sourcepub fn openrouter_attribution(
self,
http_referer: impl Into<String>,
title: impl Into<String>,
) -> HarnessBuilder
pub fn openrouter_attribution( self, http_referer: impl Into<String>, title: impl Into<String>, ) -> HarnessBuilder
Set OpenRouter attribution headers for LLM calls made by this harness.
The values flow through harness embedder metadata and are sent by the
OpenRouter driver as HTTP-Referer and X-Title.
pub fn is_built_in(self, is_built_in: bool) -> HarnessBuilder
pub fn status(self, status: HarnessStatus) -> HarnessBuilder
pub fn created_at(self, created_at: DateTime<Utc>) -> HarnessBuilder
pub fn updated_at(self, updated_at: DateTime<Utc>) -> HarnessBuilder
Trait Implementations§
Source§impl Clone for HarnessBuilder
impl Clone for HarnessBuilder
Source§fn clone(&self) -> HarnessBuilder
fn clone(&self) -> HarnessBuilder
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 HarnessBuilder
impl RefUnwindSafe for HarnessBuilder
impl Send for HarnessBuilder
impl Sync for HarnessBuilder
impl Unpin for HarnessBuilder
impl UnsafeUnpin for HarnessBuilder
impl UnwindSafe for HarnessBuilder
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