Current section
Files
Jump to
Current section
Files
lib/ex_openai/generated/components/function_shell_call_output.ex
defmodule ExOpenAI.Components.FunctionShellCallOutput do
use ExOpenAI.Jason
@moduledoc """
The output of a shell tool call that was emitted.
## Fields
* `:call_id` - **required** - `String.t()`
The unique ID of the shell tool call generated by the model.
* `:created_by` - **optional** - `String.t()`
The identifier of the actor that created the item.
* `:id` - **required** - `String.t()`
The unique ID of the shell call output. Populated when this item is returned via API.
* `:max_output_length` - **required** - `integer() | any()`
* `:output` - **required** - `[ExOpenAI.Components.FunctionShellCallOutputContent.t()]`
An array of shell call output contents
* `:status` - **required** - `ExOpenAI.Components.LocalShellCallOutputStatusEnum.t()`
The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.
* `:type` - **required** - `:shell_call_output`
The type of the shell call output. Always `shell_call_output`.
Allowed values: `"shell_call_output"`
Default: `"shell_call_output"`
"""
@type t() :: %{
__struct__: __MODULE__,
call_id: String.t(),
created_by: String.t() | nil,
id: String.t(),
max_output_length: integer() | any(),
output: list(ExOpenAI.Components.FunctionShellCallOutputContent.t()),
status: ExOpenAI.Components.LocalShellCallOutputStatusEnum.t(),
type: :shell_call_output
}
defstruct [:call_id, :created_by, :id, :max_output_length, :output, :status, :type]
end