pub struct DisambiguationManager { /* private fields */ }Expand description
Manager orchestrating the full disambiguation flow
Implementations§
Source§impl DisambiguationManager
impl DisambiguationManager
pub fn new( config: DisambiguationConfig, llm_registry: Arc<LLMRegistry>, ) -> DisambiguationManager
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if disambiguation is enabled
Sourcepub fn config(&self) -> &DisambiguationConfig
pub fn config(&self) -> &DisambiguationConfig
Get the configuration
Sourcepub async fn has_pending_clarification(&self) -> bool
pub async fn has_pending_clarification(&self) -> bool
Check if there’s a pending clarification
Sourcepub async fn process_input(
&self,
input: &str,
context: &DisambiguationContext,
) -> Result<DisambiguationResult, AgentError>
pub async fn process_input( &self, input: &str, context: &DisambiguationContext, ) -> Result<DisambiguationResult, AgentError>
Process user input with disambiguation
Sourcepub async fn process_input_with_override(
&self,
input: &str,
context: &DisambiguationContext,
state_override: Option<&StateDisambiguationOverride>,
skill_override: Option<&SkillDisambiguationOverride>,
) -> Result<DisambiguationResult, AgentError>
pub async fn process_input_with_override( &self, input: &str, context: &DisambiguationContext, state_override: Option<&StateDisambiguationOverride>, skill_override: Option<&SkillDisambiguationOverride>, ) -> Result<DisambiguationResult, AgentError>
Process input with optional state/skill overrides
Sourcepub async fn clear_pending(&self)
pub async fn clear_pending(&self)
Clear any pending clarification state
Sourcepub async fn get_pending_question(&self) -> Option<ClarificationQuestion>
pub async fn get_pending_question(&self) -> Option<ClarificationQuestion>
Get the current pending clarification if any
Sourcepub async fn clarification_attempts(&self) -> u32
pub async fn clarification_attempts(&self) -> u32
Get number of clarification attempts so far
Auto Trait Implementations§
impl !Freeze for DisambiguationManager
impl !RefUnwindSafe for DisambiguationManager
impl Send for DisambiguationManager
impl Sync for DisambiguationManager
impl Unpin for DisambiguationManager
impl UnsafeUnpin for DisambiguationManager
impl !UnwindSafe for DisambiguationManager
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
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.