Skip to content

BaseContentBlock

Sub classes

Name Children Inherits
EmbeddedResourceContentBlock
aclientp.schema.content_blocks
Complete resource contents embedded directly in the message.
    TextContentBlock
    aclientp.schema.content_blocks
    Text content.
      ImageContentBlock
      aclientp.schema.content_blocks
      Images for visual context or analysis.
        AudioContentBlock
        aclientp.schema.content_blocks
        Audio data for transcription or analysis.
          ResourceContentBlock
          aclientp.schema.content_blocks
          References to resources that the agent can access.

            Base classes

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

            ⋔ Inheritance diagram

            graph TD
              95970859784416["content_blocks.BaseContentBlock"]
              95970862258240["base.AnnotatedObject"]
              95970862254416["base.Schema"]
              95970851503232["main.BaseModel"]
              125067848591872["builtins.object"]
              95970862258240 --> 95970859784416
              95970862254416 --> 95970862258240
              95970851503232 --> 95970862254416
              125067848591872 --> 95970851503232

            🛈 DocStrings

            Bases: AnnotatedObject

            Base content block.

            Source code in src/aclientp/schema/content_blocks.py
            class BaseContentBlock(AnnotatedObject):
                """Base content block."""
            
                annotations: Annotations | None = None
                """Annotations for the content block."""
            

            annotations class-attribute instance-attribute

            annotations: Annotations | None = None
            

            Annotations for the content block.

            :fa-brands-github: Show source on GitHub