webhook
webhook
¶
WebhookChannel — generic outbound webhook adapter (zero extra deps).
Classes¶
WebhookChannel
¶
WebhookChannel(url: str = '', *, secret: str = '', method: str = 'POST', bus: Optional[EventBus] = None)
Bases: BaseChannel
Generic outbound webhook channel (send-only).
| PARAMETER | DESCRIPTION |
|---|---|
url
|
Target webhook URL.
TYPE:
|
secret
|
Optional shared secret sent in the
TYPE:
|
method
|
HTTP method (default
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/webhook.py
Functions¶
connect
¶
Mark as connected (send-only — no persistent connection).
Source code in src/openjarvis/channels/webhook.py
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
POST a JSON payload to the configured webhook URL.
Source code in src/openjarvis/channels/webhook.py
status
¶
status() -> ChannelStatus