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. metadata: Optional additional message metadata.

Properties

Union
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 463