pub enum PartInput {
Text(TextPartInput),
File(FilePartInput),
Agent(AgentPartInput),
Subtask(SubtaskPartInput),
}Expand description
An input part — text, file, agent, or subtask — discriminated by type.
Variants§
Text(TextPartInput)
A text input.
File(FilePartInput)
A file input.
Agent(AgentPartInput)
An agent delegation input.
Subtask(SubtaskPartInput)
A subtask delegation input.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PartInput
impl<'de> Deserialize<'de> for PartInput
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 StructuralPartialEq for PartInput
Auto Trait Implementations§
impl Freeze for PartInput
impl RefUnwindSafe for PartInput
impl Send for PartInput
impl Sync for PartInput
impl Unpin for PartInput
impl UnwindSafe for PartInput
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