Skip to content

SessionMessageChunk

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970862147072["session_updates.SessionMessageChunk"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970862147072
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: A content block appended to a session_message.

Source code in src/aclientp/schema/session_updates.py
class SessionMessageChunk(AnnotatedObject):
    """**UNSTABLE**: A content block appended to a ``session_message``."""

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

    message_id: str
    """Identifier of this message within the enclosing session's transcript."""

    content: ContentBlock
    """A single content block appended to the message."""

content instance-attribute

content: ContentBlock

A single content block appended to the message.

message_id instance-attribute

message_id: str

Identifier of this message within the enclosing session's transcript.

:fa-brands-github: Show source on GitHub