pub enum InputPart {
CachePoint {
ttl: Option<CachePointTtl>,
metadata: Metadata,
},
Text {
text: String,
metadata: Metadata,
},
ImageUrl {
url: String,
metadata: Metadata,
},
FileUrl {
url: String,
media_type: String,
metadata: Metadata,
},
InlineBinary {
data: Vec<u8>,
media_type: String,
metadata: Metadata,
},
ResourceRef {
uri: String,
media_type: String,
resource_type: String,
resource_metadata: Metadata,
metadata: Metadata,
},
DataUrl {
data_url: String,
media_type: String,
metadata: Metadata,
},
Url {
url: String,
metadata: Metadata,
},
File {
file: FileRef,
metadata: Metadata,
},
Binary {
binary: BinaryRef,
metadata: Metadata,
},
Mode {
mode: String,
config: Value,
metadata: Metadata,
},
Command {
command: String,
args: Vec<String>,
payload: Value,
metadata: Metadata,
},
}Expand description
Serializable run input submitted by SDKs and product hosts.
Every canonical model ContentPart has an explicit durable variant. The
legacy url, file, binary, mode, and command variants remain readable
for previous-release evidence but are not used as a content escape hatch.
Variants§
CachePoint
Prompt-cache boundary after the preceding content part.
Fields
ttl: Option<CachePointTtl>Optional provider-compatible cache lifetime.
Text
Natural language prompt text.
ImageUrl
Image URL.
FileUrl
Generic file URL with an explicit media type.
Fields
InlineBinary
Inline binary content.
Fields
ResourceRef
Resource-backed content reference.
Fields
DataUrl
Inline data URL.
Fields
Url
Legacy generic URL reference. New content writers use image_url or file_url.
File
Legacy provider-scoped file reference.
Binary
Legacy binary resource reference. New inline bytes use inline_binary.
Mode
Legacy product mode or planning hint.
Fields
Command
Legacy slash-command or product command evidence.