ResourceContentBlock
Base classes
| Name |
Children |
Inherits |
BaseContentBlock aclientp.schema.content_blocks Base content block. |
|
|
⋔ Inheritance diagram
graph TD
95970859445264["content_blocks.ResourceContentBlock"]
95970859784416["content_blocks.BaseContentBlock"]
95970862258240["base.AnnotatedObject"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970859784416 --> 95970859445264
95970862258240 --> 95970859784416
95970862254416 --> 95970862258240
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings
Bases: BaseContentBlock
References to resources that the agent can access.
All agents MUST support resource links in prompts.
Source code in src/aclientp/schema/content_blocks.py
| class ResourceContentBlock(BaseContentBlock):
"""References to resources that the agent can access.
All agents MUST support resource links in prompts.
"""
type: Literal["resource_link"] = Field(default="resource_link", init=False)
description: str | None = None
"""Description of the resource."""
mime_type: str | None = None
"""MIME type of the resource."""
name: str
"""Name of the resource."""
size: int | None = Field(default=None, ge=0)
"""Size of the resource in bytes."""
title: str | None = None
"""Title of the resource."""
uri: str
"""URI of the resource."""
|
description
class-attribute
instance-attribute
description: str | None = None
Description of the resource.
mime_type
class-attribute
instance-attribute
mime_type: str | None = None
MIME type of the resource.
size
class-attribute
instance-attribute
size: int | None = Field(default=None, ge=0)
Size of the resource in bytes.
title
class-attribute
instance-attribute
:fa-brands-github: Show source on GitHub