Skip to content

TextResourceContents

Base classes

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

⋔ Inheritance diagram

graph TD
  95970868831040["content.TextResourceContents"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970868831040
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Text contents of a resource.

Source code in src/aclientp/schema/v2/content.py
class TextResourceContents(AnnotatedObject):
    """Text contents of a resource."""

    text: str
    """The text."""

    uri: str
    """URI of the resource."""

    mime_type: MediaType | MISSING | None = MISSING
    """MIME type of the resource."""

mime_type class-attribute instance-attribute

mime_type: MediaType | MISSING | None = MISSING

MIME type of the resource.

text instance-attribute

text: str

The text.

uri instance-attribute

uri: str

URI of the resource.

:fa-brands-github: Show source on GitHub