pub struct OutputRef {
pub id: String,
pub kind: String,
pub size_bytes: i64,
pub content_hash: Option<String>,
pub preview: Option<String>,
pub media_type: String,
pub truncated: bool,
pub retrievable: bool,
}Expand description
A reference to a (possibly large) stored output kept out of the transcript so context stays bounded.
Fields§
§id: String§kind: Stringe.g. “tool_output”, “file”, “shell_stdout”
size_bytes: i64§content_hash: Option<String>§preview: Option<String>§media_type: StringMIME type of the output envelope, independent of whether it is inline or externalized.
truncated: boolTrue when preview omits any part of the original output.
retrievable: boolTrue only when id can be resolved through the authenticated output
retrieval surface.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OutputRef
impl<'de> Deserialize<'de> for OutputRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OutputRef
impl RefUnwindSafe for OutputRef
impl Send for OutputRef
impl Sync for OutputRef
impl Unpin for OutputRef
impl UnsafeUnpin for OutputRef
impl UnwindSafe for OutputRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more