Skip to content

EmbeddedResource

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Resource contents embedded in a prompt or tool call result.

Requires the embeddedContext prompt capability in prompts.

Source code in src/aclientp/schema/v2/content.py
class EmbeddedResource(AnnotatedObject):
    """Resource contents embedded in a prompt or tool call result.

    Requires the ``embeddedContext`` prompt capability in prompts.
    """

    type: Literal["resource"] = Field(default="resource", init=False)

    resource: EmbeddedResourceResource
    """The embedded contents."""

    annotations: Annotations | MISSING | None = MISSING
    """Display and routing hints."""

annotations class-attribute instance-attribute

annotations: Annotations | MISSING | None = MISSING

Display and routing hints.

resource instance-attribute

The embedded contents.

:fa-brands-github: Show source on GitHub