pub struct SimpleMessageAttachment {
pub label: String,
pub range: Option<TextRange>,
pub display_kind: Option<String>,
pub meta: Option<JsonObject>,
pub model_representation: Option<String>,
}Expand description
A simple, opaque attachment whose model representation is described by the producer.
Fields§
§label: StringA human-readable label for the attachment (e.g. the filename of a file attachment). Used for display in UI.
range: Option<TextRange>If defined, the range in {@link Message.text} that references this attachment. This is a text range, not a byte range.
display_kind: Option<String>Advisory display hint for clients rendering this attachment. Recognized values include:
'image': the attachment is an image'document': the attachment is a textual document'symbol': the attachment is a code symbol (e.g. a function or class)'directory': the attachment is a folder'selection': the attachment is a selection within a document
Implementations MAY provide additional values; clients SHOULD fall back to a reasonable default when an unknown value is encountered.
meta: Option<JsonObject>Additional implementation-defined metadata for the attachment.
If the attachment was produced by the completions command, the client
MUST preserve every property of _meta originally returned by the agent
host when sending the user message containing the accepted completion.
model_representation: Option<String>Representation of the attachment as it should be shown to the model.
If the attachment was produced by the client, this property MUST be
defined so the agent host can correctly interpret the attachment. This
property MAY be omitted when the attachment originated from a
completions response.
Trait Implementations§
Source§impl Clone for SimpleMessageAttachment
impl Clone for SimpleMessageAttachment
Source§fn clone(&self) -> SimpleMessageAttachment
fn clone(&self) -> SimpleMessageAttachment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more