View Source ExOpenAI.Components.CodeInterpreterToolCall (ex_openai.ex v2.0.0-beta2)
A tool call to run code.
Fields
:code- required -String.t() | any():container_id- required -String.t()
The ID of the container used to run the code.:id- required -String.t()
The unique ID of the code interpreter tool call.:outputs- required -[ExOpenAI.Components.CodeInterpreterOutputLogs.t() | ExOpenAI.Components.CodeInterpreterOutputImage.t()] | any():status- required -:in_progress | :completed | :incomplete | :interpreting | :failed
The status of the code interpreter tool call. Valid values arein_progress,completed,incomplete,interpreting, andfailed.
Allowed values:"in_progress","completed","incomplete","interpreting","failed":type- required -:code_interpreter_call
The type of the code interpreter tool call. Alwayscode_interpreter_call.
Allowed values:"code_interpreter_call"
Default:"code_interpreter_call"
Summary
Types
@type t() :: %ExOpenAI.Components.CodeInterpreterToolCall{ code: String.t() | any(), container_id: String.t(), id: String.t(), outputs: [ ExOpenAI.Components.CodeInterpreterOutputLogs.t() | ExOpenAI.Components.CodeInterpreterOutputImage.t() ] | any(), status: (((:in_progress | :completed) | :incomplete) | :interpreting) | :failed, type: :code_interpreter_call }