Resource link content block.
Represents a reference to an external resource in a prompt or message.
Required Fields
type- Always "resource_link" for this varianturi- URI of the resourcename- Name of the resource
Optional Fields
description- Description of the resourcemime_type- MIME type of the resourcesize- Size of the resource in bytestitle- Title of the resourceannotations- Additional annotations (map)meta- Additional metadata (map)
Example
%ACPex.Schema.Types.ContentBlock.ResourceLink{
type: "resource_link",
uri: "file:///home/user/document.pdf",
name: "document.pdf",
title: "Important Document",
description: "A PDF containing important information",
mime_type: "application/pdf",
size: 1024000
}JSON Representation
{
"type": "resource_link",
"uri": "file:///home/user/document.pdf",
"name": "document.pdf",
"title": "Important Document",
"description": "A PDF containing important information",
"mimeType": "application/pdf",
"size": 1024000
}
Summary
Functions
Creates a changeset for validation.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for validation.
Required Fields
uri- Must be presentname- Must be present
The type field defaults to "resource_link".