pub struct BuiltInHarnessDefinition {
pub name: String,
pub display_name: String,
pub description: String,
pub system_prompt: String,
pub parent_name: Option<String>,
pub tags: Vec<String>,
pub capabilities: Vec<BuiltInCapabilityDefinition>,
pub roles: Vec<BuiltInHarnessRole>,
}Expand description
Built-in harness template provisioned by a platform definition.
Built-in harnesses are identified by name (unique per org). IDs are
assigned by the seeder at provisioning time — never hardcoded.
Fields§
§name: StringName, unique per org (e.g. “generic”).
display_name: StringHuman-readable display name shown in UI.
description: StringHuman-readable description.
system_prompt: StringBase system prompt for the harness.
parent_name: Option<String>Optional parent harness name to inherit from during provisioning.
Tags applied to the harness.
capabilities: Vec<BuiltInCapabilityDefinition>Capabilities enabled by default for the harness.
roles: Vec<BuiltInHarnessRole>Special roles for platform behavior.
Implementations§
Source§impl BuiltInHarnessDefinition
impl BuiltInHarnessDefinition
Sourcepub fn new(
name: impl Into<String>,
display_name: impl Into<String>,
description: impl Into<String>,
system_prompt: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, display_name: impl Into<String>, description: impl Into<String>, system_prompt: impl Into<String>, ) -> Self
Create a built-in harness template.
Replace the harness tags.
Sourcepub fn with_parent_name(self, parent_name: impl Into<String>) -> Self
pub fn with_parent_name(self, parent_name: impl Into<String>) -> Self
Set the parent harness name used for inheritance during provisioning.
Sourcepub fn with_capabilities<I>(self, capabilities: I) -> Selfwhere
I: IntoIterator<Item = BuiltInCapabilityDefinition>,
pub fn with_capabilities<I>(self, capabilities: I) -> Selfwhere
I: IntoIterator<Item = BuiltInCapabilityDefinition>,
Replace the harness capabilities.
Sourcepub fn with_roles<I>(self, roles: I) -> Selfwhere
I: IntoIterator<Item = BuiltInHarnessRole>,
pub fn with_roles<I>(self, roles: I) -> Selfwhere
I: IntoIterator<Item = BuiltInHarnessRole>,
Replace the harness roles.
Sourcepub fn has_role(&self, role: BuiltInHarnessRole) -> bool
pub fn has_role(&self, role: BuiltInHarnessRole) -> bool
Check whether this harness has a specific role.
Trait Implementations§
Source§impl Clone for BuiltInHarnessDefinition
impl Clone for BuiltInHarnessDefinition
Source§fn clone(&self) -> BuiltInHarnessDefinition
fn clone(&self) -> BuiltInHarnessDefinition
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 BuiltInHarnessDefinition
impl RefUnwindSafe for BuiltInHarnessDefinition
impl Send for BuiltInHarnessDefinition
impl Sync for BuiltInHarnessDefinition
impl Unpin for BuiltInHarnessDefinition
impl UnsafeUnpin for BuiltInHarnessDefinition
impl UnwindSafe for BuiltInHarnessDefinition
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> 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