pub struct AttachmentExtensionContext {
pub canvas_id: Option<String>,
pub captured_at: String,
pub extension_id: String,
pub instance_id: Option<String>,
pub payload: Option<Value>,
pub title: String,
pub type: AttachmentExtensionContextType,
}Expand description
Structured context contributed by an extension. Composer pills displayed in the host are forwarded back through session.send.attachments, then rendered into the model prompt as an <extension_context> XML block.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§canvas_id: Option<String>Provider-local canvas identifier when the push was bound to a canvas instance
captured_at: StringISO 8601 timestamp captured by the runtime when the push was accepted
extension_id: StringOwning extension identifier. Runtime-derived from the caller’s connection when produced via session.extensions.sendAttachmentsToMessage; preserved verbatim on subsequent transports.
instance_id: Option<String>Open canvas instance identifier when the push was bound to a canvas instance
payload: Option<Value>Caller-supplied JSON payload
title: StringHuman-readable composer pill label
type: AttachmentExtensionContextTypeAttachment type discriminator
Trait Implementations§
Source§impl Clone for AttachmentExtensionContext
impl Clone for AttachmentExtensionContext
Source§fn clone(&self) -> AttachmentExtensionContext
fn clone(&self) -> AttachmentExtensionContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more