pub enum System<'a> {
Text(&'a str),
Blocks(&'a Value),
None,
}Expand description
System prompt input form. Anthropic accepts either a plain string or a list of content blocks; this enum mirrors that surface.
Variants§
Text(&'a str)
Treated as a single {"type": "text", "text": ...} block.
Blocks(&'a Value)
Pre-built content blocks. Must be a JSON array of objects.
None
Same as passing None to the Python API.
Auto Trait Implementations§
impl<'a> Freeze for System<'a>
impl<'a> RefUnwindSafe for System<'a>
impl<'a> Send for System<'a>
impl<'a> Sync for System<'a>
impl<'a> Unpin for System<'a>
impl<'a> UnsafeUnpin for System<'a>
impl<'a> UnwindSafe for System<'a>
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