pub enum TurnInputPartType {
Text,
Image,
Skill,
Video,
}Expand description
The type discriminator of a turn input part. Closed: an unknown part type
is invalidParams.
Variants§
Text
A user prompt text part.
Image
An inline image part, the runtime’s native image intake shape. Inline
base64 lives inside the frame cap, so an oversized submit fails
inputTooLarge and must be shrunk client-side.
Skill
An explicit skill invocation the host expands. turn/start only; at
most one per submission, combinable only with image parts.
Video
A video attachment by reference. The part carries the uploadId receipt
only; the host joins metadata from the stored upload. An unknown or
expired id fails the whole request -32038 uploadNotFound.
Trait Implementations§
Source§impl Clone for TurnInputPartType
impl Clone for TurnInputPartType
impl Copy for TurnInputPartType
Source§impl Debug for TurnInputPartType
impl Debug for TurnInputPartType
Source§impl<'de> Deserialize<'de> for TurnInputPartType
impl<'de> Deserialize<'de> for TurnInputPartType
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
impl Eq for TurnInputPartType
Source§impl PartialEq for TurnInputPartType
impl PartialEq for TurnInputPartType
Source§impl Serialize for TurnInputPartType
impl Serialize for TurnInputPartType
impl StructuralPartialEq for TurnInputPartType
Auto Trait Implementations§
impl Freeze for TurnInputPartType
impl RefUnwindSafe for TurnInputPartType
impl Send for TurnInputPartType
impl Sync for TurnInputPartType
impl Unpin for TurnInputPartType
impl UnsafeUnpin for TurnInputPartType
impl UnwindSafe for TurnInputPartType
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