CapabilityDescriptor
Defined in the protocols module.AI Agent A capability profile a relay connector attests at handshake time. Where :class:
~praisonaiagents.bots.presentation.PlatformCapabilities
declares capabilities statically in core, this descriptor is negotiated
by a remote connector at connect time so the streaming/delivery layer can
adapt to the actual platform the connector is fronting.
Attributes:
max_message_length: Maximum outbound message length the platform
accepts before the connector must split/truncate.
length_unit: How max_message_length is measured — "chars"
(Unicode code points) or "utf16" (UTF-16 code units, as some
platforms count).
supports_edit: Whether the platform supports editing a sent message
(enables draft-streaming via in-place edits).
supports_draft_streaming: Whether the connector can stream partial
drafts (incremental updates) for a single turn.
markdown_dialect: Markdown flavour the platform renders
(e.g. "none", "markdown", "markdownv2", "html").
Properties
int
No description available.
str
No description available.
bool
No description available.
bool
No description available.
str
No description available.
Methods
as_dict()
Convert to a serializable dictionary (for the handshake wire).
Internal & Generic Methods
Internal & Generic Methods
- from_dict: Reconstruct a descriptor from its serialized form.
Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 4677
