Skip to content

SessionMessageChunk

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970870314496["messages.SessionMessageChunk"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970870314496
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

A content block appended to a session message.

Participants and references come from session_message upserts.

Source code in src/aclientp/schema/v2/messages.py
class SessionMessageChunk(AnnotatedObject):
    """A content block appended to a session message.

    Participants and references come from ``session_message`` upserts.
    """

    session_update: Literal["session_message_chunk"] = Field(
        default="session_message_chunk", init=False
    )

    message_id: MessageId
    """Identifier of the message in this session's transcript."""

    content: ContentBlock
    """The appended content block."""

content instance-attribute

content: ContentBlock

The appended content block.

message_id instance-attribute

message_id: MessageId

Identifier of the message in this session's transcript.

:fa-brands-github: Show source on GitHub