ReadonlyapiThe Worker chat endpoint URL the widget posts to.
ReadonlymessagesConversation snapshot, oldest message first. Treat as immutable.
Cancel the send entirely: no request is made and nothing is rendered (the user message is dropped). Stops the hook chain. Use for client-only commands the chat should swallow.
Optionalreason: stringSkip the network request and render this assistant reply instead. The
(possibly modified) user message is still shown. Stops the hook chain —
later plugins' onBeforeSend hooks do not run.
Context for ClaudiusPlugin.onBeforeSend. Adds the ability to short-circuit the request before it reaches the network.