Skip to documentation
SLOP

tiny.acp.PromptBlobResource

Reference tiny.acp PromptBlobResource

Defined in protocol.

A caller uses this structure to put a resource's content in the prompt as a blob string.

API (3)

Fields and members

Public fields and members.

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

Source

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

zig
/// A caller uses this structure to put a resource's content in the prompt as a blob string. The/// structure holds a blob resource embedded in a prompt: its URI, its content as a string, and an/// optional MIME type. The client writes it as a block of type `resource` whose `resource` object/// holds `uri`, `blob`, and `mimeType` when one is set.pub const PromptBlobResource = struct {    /// The resource's URI, sent as `resource.uri`. The field is required.    uri: []const u8,    /// The resource's content, sent unchanged as the JSON string `resource.blob`. The field is    /// required.    blob: []const u8,    /// The resource's MIME type, sent as `resource.mimeType`. The field is empty by default, and an    /// empty value is left out.    mime_type: []const u8 = "",};

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

zig
pub const PromptBlobResource = protocol.PromptBlobResource;

Audit

Definitions1
Public names2
Members3
Version26.7.0
Revisiondaab053ee433