pub struct EchoWithHilComponent { /* private fields */ }Expand description
Echo component with HIL integration.
Requests Human approval before echoing messages.
Subscribes to EventCategory::Echo for request routing.
Supports packages for customizing output (e.g., decorators).
Implementations§
Source§impl EchoWithHilComponent
impl EchoWithHilComponent
Sourcepub fn last_result(&self) -> Option<&str>
pub fn last_result(&self) -> Option<&str>
Returns the last echo result.
Sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
Returns whether there’s a pending approval.
Sourcepub fn pending_approval_id(&self) -> Option<&str>
pub fn pending_approval_id(&self) -> Option<&str>
Returns the pending approval ID if any.
Sourcepub fn pending_description(&self) -> Option<&str>
pub fn pending_description(&self) -> Option<&str>
Returns the pending approval description if any.
Sourcepub fn decorator(&self) -> &DecoratorConfig
pub fn decorator(&self) -> &DecoratorConfig
Returns the current decorator configuration.
Trait Implementations§
Source§impl Component for EchoWithHilComponent
impl Component for EchoWithHilComponent
Source§fn id(&self) -> &ComponentId
fn id(&self) -> &ComponentId
Returns the component’s identifier. Read more
Source§fn subscriptions(&self) -> &[EventCategory]
fn subscriptions(&self) -> &[EventCategory]
Returns the event categories this component subscribes to. Read more
Source§fn on_request(&mut self, request: &Request) -> Result<Value, ComponentError>
fn on_request(&mut self, request: &Request) -> Result<Value, ComponentError>
Handle an incoming request. Read more
Source§fn on_signal(&mut self, signal: &Signal) -> SignalResponse
fn on_signal(&mut self, signal: &Signal) -> SignalResponse
Handle an incoming signal. Read more
Source§fn set_emitter(&mut self, emitter: Box<dyn Emitter>)
fn set_emitter(&mut self, emitter: Box<dyn Emitter>)
Sets the event emitter for this component. Read more
Source§fn as_packageable(&self) -> Option<&dyn Packageable>
fn as_packageable(&self) -> Option<&dyn Packageable>
Returns this component as a
Packageable if supported. Read moreSource§fn as_packageable_mut(&mut self) -> Option<&mut dyn Packageable>
fn as_packageable_mut(&mut self) -> Option<&mut dyn Packageable>
Returns this component as a mutable
Packageable if supported. Read moreSource§fn subscription_entries(&self) -> Vec<SubscriptionEntry>
fn subscription_entries(&self) -> Vec<SubscriptionEntry>
Returns subscription entries with optional operation-level filtering. Read more
Source§fn status_detail(&self) -> Option<StatusDetail>
fn status_detail(&self) -> Option<StatusDetail>
Returns detailed status information. Read more
Source§fn init(&mut self, _config: &Value) -> Result<(), ComponentError>
fn init(&mut self, _config: &Value) -> Result<(), ComponentError>
Initialize the component with optional configuration. Read more
Source§fn runtime_hints(&self) -> RuntimeHints
fn runtime_hints(&self) -> RuntimeHints
Returns runtime hints for this component. Read more
Source§fn set_child_context(&mut self, _ctx: Box<dyn ChildContext>)
fn set_child_context(&mut self, _ctx: Box<dyn ChildContext>)
Sets the child context for this component. Read more
Source§fn snapshot(&self) -> Result<ComponentSnapshot, SnapshotError>
fn snapshot(&self) -> Result<ComponentSnapshot, SnapshotError>
Captures the component’s current state as a snapshot. Read more
Source§fn restore(
&mut self,
_snapshot: &ComponentSnapshot,
) -> Result<(), SnapshotError>
fn restore( &mut self, _snapshot: &ComponentSnapshot, ) -> Result<(), SnapshotError>
Restores the component’s state from a snapshot. Read more
Source§impl Default for EchoWithHilComponent
impl Default for EchoWithHilComponent
Source§impl Packageable for EchoWithHilComponent
impl Packageable for EchoWithHilComponent
Source§fn list_packages(&self) -> &[PackageInfo]
fn list_packages(&self) -> &[PackageInfo]
Returns the list of installed packages.
Source§fn install_package(&mut self, package: &Package) -> Result<(), PackageError>
fn install_package(&mut self, package: &Package) -> Result<(), PackageError>
Installs a package. Read more
Source§fn uninstall_package(&mut self, package_id: &str) -> Result<(), PackageError>
fn uninstall_package(&mut self, package_id: &str) -> Result<(), PackageError>
Uninstalls a package by ID. Read more
Source§fn is_installed(&self, package_id: &str) -> bool
fn is_installed(&self, package_id: &str) -> bool
Returns whether a package is installed.
Auto Trait Implementations§
impl Freeze for EchoWithHilComponent
impl !RefUnwindSafe for EchoWithHilComponent
impl Send for EchoWithHilComponent
impl Sync for EchoWithHilComponent
impl Unpin for EchoWithHilComponent
impl UnsafeUnpin for EchoWithHilComponent
impl !UnwindSafe for EchoWithHilComponent
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