tiny.acp.PromptMedia
Defined in protocol.
A caller uses this structure to put an image or an audio clip in a prompt.
API (3)
Fields and members
Public fields and members.
Source
Source: lib/acp/src/protocol.zig:168
zig
/// A caller uses this structure to put an image or an audio clip in a prompt. The structure holds/// an image or an audio clip for a prompt: its MIME type, its data, and an optional URI. The client/// writes it as a block of type `image` or `audio` with `mimeType`, `data`, and `uri` when one is/// set. The strings are borrowed and read only while the prompt is written.pub const PromptMedia = struct { /// The media's MIME type, sent as `mimeType`. The field is required. mime_type: []const u8, /// The media's content, sent unchanged as the JSON string `data`. The field is required. data: []const u8, /// The media's URI, sent as `uri`. The field is empty by default, and an empty URI is left out. uri: []const u8 = "",};Source: lib/acp/src/root.zig:80
zig
pub const PromptMedia = protocol.PromptMedia;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |