pub struct ProfileBuilder { /* private fields */ }Expand description
Fluent builder for ClientEfficiencyProfile.
Implementations§
Source§impl ProfileBuilder
impl ProfileBuilder
Sourcepub fn new(client_id: impl Into<String>) -> Self
pub fn new(client_id: impl Into<String>) -> Self
Creates a builder with conservative, production-ready defaults.
Sourcepub fn coverage(self, coverage: CoverageClass) -> Self
pub fn coverage(self, coverage: CoverageClass) -> Self
Sets the client’s coverage class.
Sourcepub fn model_family(self, model_family: impl Into<String>) -> Self
pub fn model_family(self, model_family: impl Into<String>) -> Self
Sets the model family reported by the client.
Sourcepub fn context_window(self, context_window: usize) -> Self
pub fn context_window(self, context_window: usize) -> Self
Sets the model context window in tokens.
Sourcepub fn tool_budget(self, tool_budget: ToolBudget) -> Self
pub fn tool_budget(self, tool_budget: ToolBudget) -> Self
Sets the tool catalog budget.
Sourcepub fn mcp_features(self, mcp_features: McpFeatures) -> Self
pub fn mcp_features(self, mcp_features: McpFeatures) -> Self
Sets supported MCP features.
Sourcepub fn streaming(self, supports_streaming: bool) -> Self
pub fn streaming(self, supports_streaming: bool) -> Self
Sets whether response streaming is supported.
Sourcepub fn caching(self, supports_caching: bool) -> Self
pub fn caching(self, supports_caching: bool) -> Self
Sets whether reusable context caching is supported.
Sourcepub fn latency_ms(self, latency_budget_ms: u64) -> Self
pub fn latency_ms(self, latency_budget_ms: u64) -> Self
Sets the target end-to-end latency budget in milliseconds.
Sourcepub fn build(self) -> ClientEfficiencyProfile
pub fn build(self) -> ClientEfficiencyProfile
Builds the client profile.
Trait Implementations§
Source§impl Clone for ProfileBuilder
impl Clone for ProfileBuilder
Source§fn clone(&self) -> ProfileBuilder
fn clone(&self) -> ProfileBuilder
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 ProfileBuilder
impl RefUnwindSafe for ProfileBuilder
impl Send for ProfileBuilder
impl Sync for ProfileBuilder
impl Unpin for ProfileBuilder
impl UnsafeUnpin for ProfileBuilder
impl UnwindSafe for ProfileBuilder
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more