pub struct LlmHandlerState<A, M> {
pub provider_registry: Arc<ProviderRegistry<M>>,
pub tool_mgr: Arc<dyn ToolMgr<A, M>>,
pub tool_invoker: Arc<dyn ToolInvoker>,
pub metadata_mgr: Arc<dyn MetadataMgr<A, M>>,
pub request_span_starter: Arc<dyn RequestSpanStarter<M>>,
pub agent_loop_config: AgentLoopConfig<M>,
pub mapper_selector: Arc<dyn StreamMapperSelector>,
pub error_response_policy: Arc<dyn LlmErrorResponsePolicy<M>>,
}Fields§
§provider_registry: Arc<ProviderRegistry<M>>§tool_mgr: Arc<dyn ToolMgr<A, M>>§tool_invoker: Arc<dyn ToolInvoker>§metadata_mgr: Arc<dyn MetadataMgr<A, M>>§request_span_starter: Arc<dyn RequestSpanStarter<M>>§agent_loop_config: AgentLoopConfig<M>§mapper_selector: Arc<dyn StreamMapperSelector>§error_response_policy: Arc<dyn LlmErrorResponsePolicy<M>>Trait Implementations§
Auto Trait Implementations§
impl<A, M> !RefUnwindSafe for LlmHandlerState<A, M>
impl<A, M> !UnwindSafe for LlmHandlerState<A, M>
impl<A, M> Forget for LlmHandlerState<A, M>
impl<A, M> Freeze for LlmHandlerState<A, M>where
Arc<ProviderRegistry<M>>: Freeze,
Arc<dyn ToolMgr<A, M>>: Freeze,
Arc<dyn MetadataMgr<A, M>>: Freeze,
Arc<dyn RequestSpanStarter<M>>: Freeze,
AgentLoopConfig<M>: Freeze,
Arc<dyn LlmErrorResponsePolicy<M>>: Freeze,
impl<A, M> Move for LlmHandlerState<A, M>
impl<A, M> Send for LlmHandlerState<A, M>where
Arc<ProviderRegistry<M>>: Send,
Arc<dyn ToolMgr<A, M>>: Send,
Arc<dyn MetadataMgr<A, M>>: Send,
Arc<dyn RequestSpanStarter<M>>: Send,
AgentLoopConfig<M>: Send,
Arc<dyn LlmErrorResponsePolicy<M>>: Send,
impl<A, M> Sync for LlmHandlerState<A, M>where
Arc<ProviderRegistry<M>>: Sync,
Arc<dyn ToolMgr<A, M>>: Sync,
Arc<dyn MetadataMgr<A, M>>: Sync,
Arc<dyn RequestSpanStarter<M>>: Sync,
AgentLoopConfig<M>: Sync,
Arc<dyn LlmErrorResponsePolicy<M>>: Sync,
impl<A, M> Unpin for LlmHandlerState<A, M>where
Arc<ProviderRegistry<M>>: Unpin,
Arc<dyn ToolMgr<A, M>>: Unpin,
Arc<dyn MetadataMgr<A, M>>: Unpin,
Arc<dyn RequestSpanStarter<M>>: Unpin,
AgentLoopConfig<M>: Unpin,
Arc<dyn LlmErrorResponsePolicy<M>>: Unpin,
impl<A, M> UnsafeUnpin for LlmHandlerState<A, M>where
Arc<ProviderRegistry<M>>: UnsafeUnpin,
Arc<dyn ToolMgr<A, M>>: UnsafeUnpin,
Arc<dyn MetadataMgr<A, M>>: UnsafeUnpin,
Arc<dyn RequestSpanStarter<M>>: UnsafeUnpin,
AgentLoopConfig<M>: UnsafeUnpin,
Arc<dyn LlmErrorResponsePolicy<M>>: UnsafeUnpin,
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 moreCreates a shared type from an unshared type.