tiny.acp.PromptTextResource
Defined in protocol.
A caller uses this structure to put a file's text in the prompt, such as source code the agent should read.
API (3)
Fields and members
Public fields and members.
Source
Source: lib/acp/src/protocol.zig:181
zig
/// A caller uses this structure to put a file's text in the prompt, such as source code the agent/// should read. The structure holds a text resource embedded in a prompt: its URI, its text, and an/// optional MIME type. The client writes it as a block of type `resource` whose `resource` object/// holds `uri`, `text`, and `mimeType` when one is set.pub const PromptTextResource = struct { /// The resource's URI, sent as `resource.uri`. The field is required. uri: []const u8, /// The resource's text, sent as `resource.text`. The field is required. text: []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:85
zig
pub const PromptTextResource = protocol.PromptTextResource;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |