Skip to main content

MessageParams

Defined in the protocols module.
AI Agent Validated message frame — a client turn sent to the agent. Completes the typed contract for the advertised message method so it is no longer hand-parsed per handler. Attributes: content: The message body (text, or a structured payload). session_id: Optional session the message belongs to. message_id: Optional client-supplied idempotency/correlation id. request_id: Optional client-supplied request-idempotency key (Issue #5193). When present the gateway dedups a resend of the same request_id — a request queued while reconnecting and flushed on reconnect runs the turn exactly once instead of being lost or double-run. Absent keeps the legacy fire-and-forget behaviour. metadata: Optional additional message metadata.

Properties

Union
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Dict[str, Any]
No description available.
str
No description available.

Methods

from_frame()

Validate a raw message frame into typed params.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 547