tiny.acp.PromptContent
Defined in protocol.
A prompt is a list of these blocks, so a caller can mix text with files, links and media in one prompt.
API (6)
Fields and members
Public fields and members.
Source
Source: lib/acp/src/protocol.zig:234
zig
/// A prompt is a list of these blocks, so a caller can mix text with files, links and media in one/// prompt. The union holds one block of prompt content, of one of six kinds./// `Client.promptDetailedContent` sends a list of blocks in order. `Client.prompt` and/// `Client.promptDetailed` send a single text block. The client writes every kind as given, without/// checking the capability flags in `Initialize`, so the caller checks them.pub const PromptContent = union(enum) { /// Plain text, written as a block of type `text` with the string in `text`. text: []const u8, /// An image, written as a block of type `image`. image: PromptMedia, /// An audio clip, written as a block of type `audio`. audio: PromptMedia, /// A text resource embedded in the prompt, written as a block of type `resource`. resource_text: PromptTextResource, /// A blob resource embedded in the prompt, written as a block of type `resource`. resource_blob: PromptBlobResource, /// A link to a resource, written as a block of type `resource_link`. resource_link: PromptResourceLink,};Source: lib/acp/src/root.zig:79
zig
pub const PromptContent = protocol.PromptContent;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |