Skip to content

ResourceLink

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

A link to a resource the receiver may be able to read. All agents MUST support it.

Source code in src/aclientp/schema/v2/content.py
class ResourceLink(AnnotatedObject):
    """A link to a resource the receiver may be able to read. All agents MUST support it."""

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

    name: str
    """Human-readable name."""

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

    title: str | MISSING | None = MISSING
    """Display title."""

    description: str | MISSING | None = MISSING
    """Human-readable details."""

    icons: Sequence[Icon] | MISSING | None = MISSING
    """Icons a user interface can show."""

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

    size: int | MISSING | None = Field(default=MISSING, ge=0)
    """Size of the resource in bytes."""

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

annotations class-attribute instance-attribute

annotations: Annotations | MISSING | None = MISSING

Display and routing hints.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Human-readable details.

icons class-attribute instance-attribute

icons: Sequence[Icon] | MISSING | None = MISSING

Icons a user interface can show.

mime_type class-attribute instance-attribute

mime_type: MediaType | MISSING | None = MISSING

MIME type of the resource.

name instance-attribute

name: str

Human-readable name.

size class-attribute instance-attribute

size: int | MISSING | None = Field(default=MISSING, ge=0)

Size of the resource in bytes.

title class-attribute instance-attribute

title: str | MISSING | None = MISSING

Display title.

uri instance-attribute

uri: str

URI of the resource.

:fa-brands-github: Show source on GitHub