pub enum ToolProgramContentPart {
Inline(Vec<TextContentOrImage>),
Reference {
id: String,
indices: Option<Vec<usize>>,
},
}Expand description
Native content composition. References select only content, never child metadata.
Variants§
Inline(Vec<TextContentOrImage>)
Adapter-validated owned blocks; plugin frames remain limited to 1 MiB.
Reference
Invocation-owned native content. None selects all; an empty selection selects none. Ordered indices may repeat, but must remain in bounds.
Trait Implementations§
Source§impl Clone for ToolProgramContentPart
impl Clone for ToolProgramContentPart
Auto Trait Implementations§
impl Forget for ToolProgramContentPart
impl Freeze for ToolProgramContentPart
impl RefUnwindSafe for ToolProgramContentPart
impl Send for ToolProgramContentPart
impl Sync for ToolProgramContentPart
impl Unpin for ToolProgramContentPart
impl UnsafeUnpin for ToolProgramContentPart
impl UnwindSafe for ToolProgramContentPart
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