Skip to main content

ExtensionRegistryBuilder

Struct ExtensionRegistryBuilder 

Source
pub struct ExtensionRegistryBuilder {
Show 25 fields pub inference_engines: Vec<Arc<dyn InferenceEngine>>, pub inference_routers: Vec<Arc<dyn InferenceRouter>>, pub context_providers: Vec<Arc<dyn ContextProvider>>, pub context_planners: Vec<Arc<dyn ContextPlanner>>, pub thread_stores: Vec<Arc<dyn ThreadStoreFactory>>, pub checkpoint_stores: Vec<Arc<dyn CheckpointStoreFactory>>, pub memory_stores: Vec<Arc<dyn MemoryStoreFactory>>, pub knowledge_stores: Vec<Arc<dyn KnowledgeStoreFactory>>, pub embedding_providers: Vec<Arc<dyn EmbeddingProvider>>, pub media_generator_providers: Vec<Arc<dyn MediaGeneratorProvider>>, pub tools: Vec<Arc<dyn ToolContributor>>, pub subagent_dispatchers: Vec<Arc<dyn SubagentDispatcher>>, pub policy_contributors: Vec<Arc<dyn PolicyContributor>>, pub event_sinks: Vec<Arc<dyn EventSink>>, pub fork_providers: Vec<Arc<dyn ForkProvider>>, pub task_executors: Vec<Arc<dyn TaskExecutor>>, pub notification_sinks: Vec<Arc<dyn NotificationSink>>, pub interactive_region_handlers: Vec<Arc<dyn InteractiveRegionHandler>>, pub speech_transcribers: Vec<Arc<dyn SpeechTranscriber>>, pub speech_synthesizers: Vec<Arc<dyn SpeechSynthesizer>>, pub version_control_providers: Vec<Arc<dyn VcsProvider>>, pub remote_runner_providers: Vec<Arc<dyn RemoteRunnerProvider>>, pub status_segments: Vec<StatusSegment>, pub palette_sources: Vec<PaletteSourceDescriptor>, pub code_index_providers: Vec<Arc<dyn CodeIndexProvider>>, /* private fields */
}

Fields§

§inference_engines: Vec<Arc<dyn InferenceEngine>>§inference_routers: Vec<Arc<dyn InferenceRouter>>§context_providers: Vec<Arc<dyn ContextProvider>>§context_planners: Vec<Arc<dyn ContextPlanner>>§thread_stores: Vec<Arc<dyn ThreadStoreFactory>>§checkpoint_stores: Vec<Arc<dyn CheckpointStoreFactory>>§memory_stores: Vec<Arc<dyn MemoryStoreFactory>>§knowledge_stores: Vec<Arc<dyn KnowledgeStoreFactory>>§embedding_providers: Vec<Arc<dyn EmbeddingProvider>>§media_generator_providers: Vec<Arc<dyn MediaGeneratorProvider>>§tools: Vec<Arc<dyn ToolContributor>>§subagent_dispatchers: Vec<Arc<dyn SubagentDispatcher>>§policy_contributors: Vec<Arc<dyn PolicyContributor>>§event_sinks: Vec<Arc<dyn EventSink>>§fork_providers: Vec<Arc<dyn ForkProvider>>§task_executors: Vec<Arc<dyn TaskExecutor>>§notification_sinks: Vec<Arc<dyn NotificationSink>>§interactive_region_handlers: Vec<Arc<dyn InteractiveRegionHandler>>§speech_transcribers: Vec<Arc<dyn SpeechTranscriber>>§speech_synthesizers: Vec<Arc<dyn SpeechSynthesizer>>§version_control_providers: Vec<Arc<dyn VcsProvider>>§remote_runner_providers: Vec<Arc<dyn RemoteRunnerProvider>>§status_segments: Vec<StatusSegment>§palette_sources: Vec<PaletteSourceDescriptor>§code_index_providers: Vec<Arc<dyn CodeIndexProvider>>

Implementations§

Source§

impl ExtensionRegistryBuilder

Source

pub fn new() -> Self

Source

pub fn install<E: RoderExtension>(&mut self, ext: E) -> Result<()>

Installs the extension and checks that every service it registers is declared in its manifest provides list, so a manifest is a complete inventory of what an installed extension contributes. Host code that registers services directly on the builder (outside install) is not subject to this check.

Source

pub fn build(self) -> Result<ExtensionRegistry>

Source

pub fn manifest(&mut self, manifest: ExtensionManifest)

Source

pub fn grant_capability( &mut self, extension_id: impl Into<String>, grant: CapabilityGrant, )

Capability grants are advisory metadata surfaced through extensions/list (statically linked extensions run in-process); nothing enforces them at runtime.

Source

pub fn deny_capability( &mut self, extension_id: impl Into<String>, denial: CapabilityDenial, )

Advisory, like Self::grant_capability: a denial fails build() for extensions that require the capability but does not constrain runtime behavior.

Source

pub fn inference_engine(&mut self, engine: Arc<dyn InferenceEngine>)

Source

pub fn inference_router(&mut self, router: Arc<dyn InferenceRouter>)

Source

pub fn context_provider(&mut self, provider: Arc<dyn ContextProvider>)

Source

pub fn context_planner(&mut self, planner: Arc<dyn ContextPlanner>)

Source

pub fn thread_store_factory(&mut self, store: Arc<dyn ThreadStoreFactory>)

Source

pub fn checkpoint_store_factory( &mut self, store: Arc<dyn CheckpointStoreFactory>, )

Source

pub fn memory_store_factory(&mut self, store: Arc<dyn MemoryStoreFactory>)

Source

pub fn knowledge_store_factory(&mut self, store: Arc<dyn KnowledgeStoreFactory>)

Source

pub fn embedding_provider(&mut self, provider: Arc<dyn EmbeddingProvider>)

Source

pub fn media_generator_provider( &mut self, provider: Arc<dyn MediaGeneratorProvider>, )

Source

pub fn tool_contributor(&mut self, contributor: Arc<dyn ToolContributor>)

Source

pub fn subagent_dispatcher(&mut self, dispatcher: Arc<dyn SubagentDispatcher>)

Source

pub fn policy_contributor(&mut self, contributor: Arc<dyn PolicyContributor>)

Source

pub fn event_sink(&mut self, sink: Arc<dyn EventSink>)

Source

pub fn fork_provider(&mut self, provider: Arc<dyn ForkProvider>)

Source

pub fn task_executor(&mut self, executor: Arc<dyn TaskExecutor>)

Source

pub fn notification_sink(&mut self, sink: Arc<dyn NotificationSink>)

Source

pub fn interactive_region_handler( &mut self, handler: Arc<dyn InteractiveRegionHandler>, )

Source

pub fn speech_transcriber(&mut self, transcriber: Arc<dyn SpeechTranscriber>)

Source

pub fn speech_synthesizer(&mut self, synthesizer: Arc<dyn SpeechSynthesizer>)

Source

pub fn version_control_provider(&mut self, provider: Arc<dyn VcsProvider>)

Source

pub fn remote_runner_provider( &mut self, provider: Arc<dyn RemoteRunnerProvider>, )

Source

pub fn status_segment(&mut self, segment: StatusSegment)

Source

pub fn palette_source(&mut self, source: PaletteSourceDescriptor)

Source

pub fn code_index_provider(&mut self, provider: Arc<dyn CodeIndexProvider>)

Trait Implementations§

Source§

impl Default for ExtensionRegistryBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.