Skip to documentation
SLOP

tiny.acp.PromptResourceLink

Reference tiny.acp PromptResourceLink

Defined in protocol.

A caller uses this structure to point the agent at a resource by URI without putting its content in the prompt.

API (6)

Fields and members

Public fields and members.

No direct callersNo direct callsprotocolPromptResourceLink
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/acp/src/protocol.zig:210

zig
/// A caller uses this structure to point the agent at a resource by URI without putting its content/// in the prompt. The structure holds a link to a resource: a URI and a name, with an optional MIME/// type, title, description and size. The client writes it as a block of type `resource_link` with/// each field that is set. Empty strings and a null size are left out.pub const PromptResourceLink = struct {    /// The resource's URI, sent as `uri`. The field is required.    uri: []const u8,    /// The resource's name, sent as `name`. The field is required.    name: []const u8,    /// The resource's MIME type, sent as `mimeType`. The field is empty by default, and an empty    /// value is left out.    mime_type: []const u8 = "",    /// A title for the resource, sent as `title`. The field is empty by default, and an empty value    /// is left out.    title: []const u8 = "",    /// A description of the resource, sent as `description`. The field is empty by default, and an    /// empty value is left out.    description: []const u8 = "",    /// The resource's size, sent as the number `size`. The field is null by default, and a null    /// size is left out.    size: ?u64 = null,};

Source: lib/acp/src/root.zig:81

zig
pub const PromptResourceLink = protocol.PromptResourceLink;

Audit

Definitions1
Public names2
Members6
Version26.7.0
Revisiondaab053ee433