pub struct CodeInterpreterToolCall {
pub code: String,
pub id: String,
pub results: Vec<CodeInterpreterToolOutput>,
pub status: String,
pub _type: String,
}
Expand description
§on openapi.yaml
CodeInterpreterToolCall:
type: object
title: Code interpreter tool call
description: |
A tool call to run code.
properties:
id:
type: string
description: |
The unique ID of the code interpreter tool call.
type:
type: string
enum:
- code_interpreter_call
description: >
The type of the code interpreter tool call. Always
`code_interpreter_call`.
x-stainless-const: true
code:
type: string
description: |
The code to run.
status:
type: string
enum:
- in_progress
- interpreting
- completed
description: |
The status of the code interpreter tool call.
results:
type: array
items:
$ref: "#/components/schemas/CodeInterpreterToolOutput"
description: |
The results of the code interpreter tool call.
required:
- id
- type
- code
- status
- results
Fields§
§code: String
The code to run.
id: String
The unique ID of the code interpreter tool call.
results: Vec<CodeInterpreterToolOutput>
The results of the code interpreter tool call.
status: String
The status of the code interpreter tool call.
_type: String
The type of the code interpreter tool call. Always code_interpreter_call
.
Trait Implementations§
Source§impl Debug for CodeInterpreterToolCall
impl Debug for CodeInterpreterToolCall
Source§impl<'de> Deserialize<'de> for CodeInterpreterToolCall
impl<'de> Deserialize<'de> for CodeInterpreterToolCall
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
Auto Trait Implementations§
impl Freeze for CodeInterpreterToolCall
impl RefUnwindSafe for CodeInterpreterToolCall
impl Send for CodeInterpreterToolCall
impl Sync for CodeInterpreterToolCall
impl Unpin for CodeInterpreterToolCall
impl UnwindSafe for CodeInterpreterToolCall
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