pub struct WebhookChannel { /* private fields */ }Expand description
File-based webhook channel for external review integrations.
Exchange pattern:
- TA writes
{endpoint}/request-{id}.jsonwith the InteractionRequest - External process reads it, decides, writes
{endpoint}/response-{id}.json - TA polls for the response file and parses it
The endpoint is a directory path (for file-based) or URL (for future HTTP).
Implementations§
Source§impl WebhookChannel
impl WebhookChannel
Sourcepub fn with_poll_interval(self, interval: Duration) -> Self
pub fn with_poll_interval(self, interval: Duration) -> Self
Set the polling interval.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the timeout.
Trait Implementations§
Source§impl ReviewChannel for WebhookChannel
impl ReviewChannel for WebhookChannel
Source§fn request_interaction(
&self,
request: &InteractionRequest,
) -> Result<InteractionResponse, ReviewChannelError>
fn request_interaction( &self, request: &InteractionRequest, ) -> Result<InteractionResponse, ReviewChannelError>
Send an interaction request to the human and await their response. Read more
Source§fn notify(&self, notification: &Notification) -> Result<(), ReviewChannelError>
fn notify(&self, notification: &Notification) -> Result<(), ReviewChannelError>
Non-blocking notification to the human. Read more
Source§fn capabilities(&self) -> ChannelCapabilities
fn capabilities(&self) -> ChannelCapabilities
What this channel supports (async responses, rich media, threads, etc.).
Source§fn channel_id(&self) -> &str
fn channel_id(&self) -> &str
Channel identity string for audit trail (e.g., “terminal:tty0”, “slack:C04ABC”).
Auto Trait Implementations§
impl Freeze for WebhookChannel
impl RefUnwindSafe for WebhookChannel
impl Send for WebhookChannel
impl Sync for WebhookChannel
impl Unpin for WebhookChannel
impl UnsafeUnpin for WebhookChannel
impl UnwindSafe for WebhookChannel
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