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.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |