pub enum ItemResource {
Show 16 variants
InputMessageResource(InputMessageResource),
OutputMessage(OutputMessage),
FileSearchToolCall(FileSearchToolCall),
ComputerToolCall(ComputerToolCall),
ComputerToolCallOutputResource(ComputerToolCallOutputResource),
WebSearchToolCall(WebSearchToolCall),
FunctionToolCallResource(FunctionToolCallResource),
FunctionToolCallOutputResource(FunctionToolCallOutputResource),
ImageGenToolCall(ImageGenToolCall),
CodeInterpreterToolCall(CodeInterpreterToolCall),
LocalShellToolCall(LocalShellToolCall),
LocalShellToolCallOutput(LocalShellToolCallOutput),
McpListTools(McpListTools),
McpApprovalRequest(McpApprovalRequest),
McpApprovalResponseResource(McpApprovalResponseResource),
McpToolCall(McpToolCall),
}
Expand description
Content item used to generate a response.
Variants§
InputMessageResource(InputMessageResource)
OutputMessage(OutputMessage)
FileSearchToolCall(FileSearchToolCall)
ComputerToolCall(ComputerToolCall)
ComputerToolCallOutputResource(ComputerToolCallOutputResource)
WebSearchToolCall(WebSearchToolCall)
FunctionToolCallResource(FunctionToolCallResource)
FunctionToolCallOutputResource(FunctionToolCallOutputResource)
ImageGenToolCall(ImageGenToolCall)
CodeInterpreterToolCall(CodeInterpreterToolCall)
LocalShellToolCall(LocalShellToolCall)
LocalShellToolCallOutput(LocalShellToolCallOutput)
McpListTools(McpListTools)
McpApprovalRequest(McpApprovalRequest)
McpApprovalResponseResource(McpApprovalResponseResource)
McpToolCall(McpToolCall)
Trait Implementations§
Source§impl Clone for ItemResource
impl Clone for ItemResource
Source§fn clone(&self) -> ItemResource
fn clone(&self) -> ItemResource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ItemResource
impl Debug for ItemResource
Source§impl<'de> Deserialize<'de> for ItemResource
impl<'de> Deserialize<'de> for ItemResource
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
Source§impl PartialEq for ItemResource
impl PartialEq for ItemResource
Source§impl Serialize for ItemResource
impl Serialize for ItemResource
impl StructuralPartialEq for ItemResource
Auto Trait Implementations§
impl Freeze for ItemResource
impl RefUnwindSafe for ItemResource
impl Send for ItemResource
impl Sync for ItemResource
impl Unpin for ItemResource
impl UnwindSafe for ItemResource
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