pub struct PlatformDefinitionBuilder { /* private fields */ }Expand description
Builder for PlatformDefinition.
Implementations§
Source§impl PlatformDefinitionBuilder
impl PlatformDefinitionBuilder
Sourcepub fn capability_registry(self, registry: CapabilityRegistry) -> Self
pub fn capability_registry(self, registry: CapabilityRegistry) -> Self
Replace the capability registry.
Sourcepub fn capability(self, capability: impl Capability + 'static) -> Self
pub fn capability(self, capability: impl Capability + 'static) -> Self
Register a capability on the platform.
Sourcepub fn driver_registry(self, registry: DriverRegistry) -> Self
pub fn driver_registry(self, registry: DriverRegistry) -> Self
Replace the driver registry.
Sourcepub fn connectors(self, registry: ConnectorRegistry) -> Self
pub fn connectors(self, registry: ConnectorRegistry) -> Self
Replace the connection-provider registry.
Sourcepub fn connector(self, provider: impl Connector + 'static) -> Self
pub fn connector(self, provider: impl Connector + 'static) -> Self
Register a connector on the platform.
Sourcepub fn built_in_harnesses<I>(self, harnesses: I) -> Selfwhere
I: IntoIterator<Item = BuiltInHarnessDefinition>,
pub fn built_in_harnesses<I>(self, harnesses: I) -> Selfwhere
I: IntoIterator<Item = BuiltInHarnessDefinition>,
Replace the built-in harness templates.
Sourcepub fn add_built_in_harness(self, harness: BuiltInHarnessDefinition) -> Self
pub fn add_built_in_harness(self, harness: BuiltInHarnessDefinition) -> Self
Append a built-in harness template.
Sourcepub fn egress_service(self, service: Arc<dyn EgressService>) -> Self
pub fn egress_service(self, service: Arc<dyn EgressService>) -> Self
Set the system-wide outbound egress service.
Sourcepub fn email_sender(self, sender: Arc<dyn EmailSender>) -> Self
pub fn email_sender(self, sender: Arc<dyn EmailSender>) -> Self
Set the system-wide email sender.
Sourcepub fn utility_llm_service(self, service: Arc<dyn UtilityLlmService>) -> Self
pub fn utility_llm_service(self, service: Arc<dyn UtilityLlmService>) -> Self
Set the system-wide utility LLM service.
Sourcepub fn session_file_system_factory(
self,
factory: Arc<dyn SessionFileSystemFactory>,
) -> Self
pub fn session_file_system_factory( self, factory: Arc<dyn SessionFileSystemFactory>, ) -> Self
Set the platform-wide session filesystem factory.
Sourcepub fn vector_store(self, vector_store: Arc<dyn VectorStore>) -> Self
pub fn vector_store(self, vector_store: Arc<dyn VectorStore>) -> Self
Set the platform-wide vector store for Knowledge Index embeddings.
Sourcepub fn build(self) -> PlatformDefinition
pub fn build(self) -> PlatformDefinition
Build the platform definition.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PlatformDefinitionBuilder
impl !UnwindSafe for PlatformDefinitionBuilder
impl Freeze for PlatformDefinitionBuilder
impl Send for PlatformDefinitionBuilder
impl Sync for PlatformDefinitionBuilder
impl Unpin for PlatformDefinitionBuilder
impl UnsafeUnpin for PlatformDefinitionBuilder
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> 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