Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: 0110ac25-d05b-4025-bf4b-d0d8c2462f5f
openapi_spec_hash: b2c62b342b04685226037c980f2b5a7a
openapi_transformed_spec_hash: ba44bf31326f01a1d886b7510dd9da8a
config_hash: 4fbbbcf377bcc17646cccb9fcfbac14a
codegen_sha: 3c65ac176821d87728f118da50503d56e53e13a0
codegen_hash: 1d7b6788034665f5795f078ea92c65dcba9648ab2ce78073a81b4f634bcc2670
public_codegen_sha: a0d9caa7c1234a72707fdd2833ad808e757bd720
generation_id: fd685246-c2b0-4106-98b9-3a3b3582ed66
openapi_spec_hash: 32e9f9c8096eae027754def9afb89dc0
openapi_transformed_spec_hash: a5861d7f7b67f6845c9499fdec7324a5
config_hash: 5c00fe18ea913ed0186f9894adc02a70
codegen_sha: 71ad5b66e1bd724016ccfa556a9d4323a3baadd5
codegen_hash: ee7ca84550f48649fac01391ae5ae621791dcbe4ae5a69b94adaafd97087d79e
public_codegen_sha: d6bc0e12476f77f7709399e8aec92217ab8588f7
24 changes: 12 additions & 12 deletions api_reference/openapi.transformed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37968,7 +37968,6 @@ components:
- incomplete
required:
- type
- call_id
- output
FunctionToolCallOutputResource:
allOf:
Expand Down Expand Up @@ -63939,10 +63938,12 @@ components:
example: fc_123
- type: 'null'
call_id:
type: string
maxLength: 64
minLength: 1
description: The unique ID of the function tool call generated by the model.
anyOf:
- type: string
maxLength: 64
minLength: 1
description: The unique ID of the function tool call generated by the model.
- type: 'null'
type:
type: string
enum:
Expand Down Expand Up @@ -63994,7 +63995,6 @@ components:
type: object
required:
- type
- call_id
- output
title: Function tool call output
description: The output of a function tool call.
Expand Down Expand Up @@ -71251,10 +71251,12 @@ components:
example: fc_123
- type: 'null'
call_id:
type: string
maxLength: 64
minLength: 1
description: The unique ID of the function tool call generated by the model.
anyOf:
- type: string
maxLength: 64
minLength: 1
description: The unique ID of the function tool call generated by the model.
- type: 'null'
type:
type: string
enum:
Expand Down Expand Up @@ -71306,7 +71308,6 @@ components:
type: object
required:
- type
- call_id
- output
title: Function tool call output
description: The output of a function tool call.
Expand Down Expand Up @@ -73658,7 +73659,6 @@ components:
- incomplete
required:
- type
- call_id
- output
BetaFunctionToolCallResource:
allOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ class BetaResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [String]
required :id, String

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String]
required :call_id, String

# @!attribute output
# The output from the function call generated by your code. Can be a string or an
# list of output content.
Expand All @@ -42,6 +36,12 @@ class BetaResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::Agent, nil]
optional :agent, -> { OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Agent }, nil?: true

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String, nil]
optional :call_id, String

# @!attribute caller_
# The execution context that produced this tool call.
#
Expand Down Expand Up @@ -71,20 +71,20 @@ class BetaResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :namespace, String

# @!method initialize(id:, call_id:, output:, status:, agent: nil, caller_: nil, created_by: nil, name: nil, namespace: nil, type: :function_call_output)
# @!method initialize(id:, output:, status:, agent: nil, call_id: nil, caller_: nil, created_by: nil, name: nil, namespace: nil, type: :function_call_output)
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem} for more details.
#
# @param id [String] The unique ID of the function call tool output.
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param output [String, Array<OpenAI::Models::Beta::BetaResponseInputText, OpenAI::Models::Beta::BetaResponseInputImage, OpenAI::Models::Beta::BetaResponseInputFile>] The output from the function call generated by your code.
#
# @param status [Symbol, OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::Status] The status of the item. One of `in_progress`, `completed`, or
#
# @param agent [OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::Agent, nil] The agent that produced this item.
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param caller_ [OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::Caller::Direct, OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::Caller::Program, nil] The execution context that produced this tool call.
#
# @param created_by [String] The identifier of the actor that created the item.
Expand Down
18 changes: 9 additions & 9 deletions lib/openai/models/beta/beta_response_input_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,6 @@ module Status
end

class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String]
required :call_id, String

# @!attribute output
# Text, image, or file output of the function tool call.
#
Expand All @@ -402,6 +396,12 @@ class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
# @return [OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Agent, nil]
optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::FunctionCallOutput::Agent }, nil?: true

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String, nil]
optional :call_id, String, nil?: true

# @!attribute caller_
# The execution context that produced this tool call.
#
Expand Down Expand Up @@ -438,21 +438,21 @@ class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
nil?: true
)

# @!method initialize(call_id:, output:, id: nil, agent: nil, caller_: nil, name: nil, namespace: nil, status: nil, type: :function_call_output)
# @!method initialize(output:, id: nil, agent: nil, call_id: nil, caller_: nil, name: nil, namespace: nil, status: nil, type: :function_call_output)
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput} for more
# details.
#
# The output of a function tool call.
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param output [String, Array<OpenAI::Models::Beta::BetaResponseInputTextContent, OpenAI::Models::Beta::BetaResponseInputImageContent, OpenAI::Models::Beta::BetaResponseInputFileContent>] Text, image, or file output of the function tool call.
#
# @param id [String, nil] The unique ID of the function tool call output. Populated when this item is retu
#
# @param agent [OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Agent, nil] The agent that produced this item.
#
# @param call_id [String, nil] The unique ID of the function tool call generated by the model.
#
# @param caller_ [OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Caller::Direct, OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput::Caller::Program, nil] The execution context that produced this tool call.
#
# @param name [String, nil] The name of the tool that produced the output.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ class ResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [String]
required :id, String

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String]
required :call_id, String

# @!attribute output
# The output from the function call generated by your code. Can be a string or an
# list of output content.
Expand All @@ -36,6 +30,12 @@ class ResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [Symbol, :function_call_output]
required :type, const: :function_call_output

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String, nil]
optional :call_id, String

# @!attribute caller_
# The execution context that produced this tool call.
#
Expand Down Expand Up @@ -65,19 +65,19 @@ class ResponseFunctionToolCallOutputItem < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :namespace, String

# @!method initialize(id:, call_id:, output:, status:, caller_: nil, created_by: nil, name: nil, namespace: nil, type: :function_call_output)
# @!method initialize(id:, output:, status:, call_id: nil, caller_: nil, created_by: nil, name: nil, namespace: nil, type: :function_call_output)
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem} for more
# details.
#
# @param id [String] The unique ID of the function call tool output.
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param output [String, Array<OpenAI::Models::Responses::ResponseInputText, OpenAI::Models::Responses::ResponseInputImage, OpenAI::Models::Responses::ResponseInputFile>] The output from the function call generated by your code.
#
# @param status [Symbol, OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem::Status] The status of the item. One of `in_progress`, `completed`, or
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param caller_ [OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem::Caller::Direct, OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem::Caller::Program, nil] The execution context that produced this tool call.
#
# @param created_by [String] The identifier of the actor that created the item.
Expand Down
18 changes: 9 additions & 9 deletions lib/openai/models/responses/response_input_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,6 @@ module Status
end

class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String]
required :call_id, String

# @!attribute output
# Text, image, or file output of the function tool call.
#
Expand All @@ -343,6 +337,12 @@ class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :id, String, nil?: true

# @!attribute call_id
# The unique ID of the function tool call generated by the model.
#
# @return [String, nil]
optional :call_id, String, nil?: true

# @!attribute caller_
# The execution context that produced this tool call.
#
Expand Down Expand Up @@ -377,19 +377,19 @@ class FunctionCallOutput < OpenAI::Internal::Type::BaseModel
nil?: true
)

# @!method initialize(call_id:, output:, id: nil, caller_: nil, name: nil, namespace: nil, status: nil, type: :function_call_output)
# @!method initialize(output:, id: nil, call_id: nil, caller_: nil, name: nil, namespace: nil, status: nil, type: :function_call_output)
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput} for more
# details.
#
# The output of a function tool call.
#
# @param call_id [String] The unique ID of the function tool call generated by the model.
#
# @param output [String, Array<OpenAI::Models::Responses::ResponseInputTextContent, OpenAI::Models::Responses::ResponseInputImageContent, OpenAI::Models::Responses::ResponseInputFileContent>] Text, image, or file output of the function tool call.
#
# @param id [String, nil] The unique ID of the function tool call output. Populated when this item is retu
#
# @param call_id [String, nil] The unique ID of the function tool call generated by the model.
#
# @param caller_ [OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::Caller::Direct, OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput::Caller::Program, nil] The execution context that produced this tool call.
#
# @param name [String, nil] The name of the tool that produced the output.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ module OpenAI
sig { returns(String) }
attr_accessor :id

# The unique ID of the function tool call generated by the model.
sig { returns(String) }
attr_accessor :call_id

# The output from the function call generated by your code. Can be a string or an
# list of output content.
sig { returns(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Output::Variants) }
Expand All @@ -45,6 +41,13 @@ module OpenAI
sig { params(agent: T.nilable(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Agent::OrHash)).void }
attr_writer :agent

# The unique ID of the function tool call generated by the model.
sig { returns(T.nilable(String)) }
attr_reader :call_id

sig { params(call_id: String).void }
attr_writer :call_id

# The execution context that produced this tool call.
sig { returns(T.nilable(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Caller::Variants)) }
attr_accessor :caller_
Expand Down Expand Up @@ -75,14 +78,14 @@ module OpenAI

id: String,

call_id: String,

output: OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Output::Variants,

status: OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Status::OrSymbol,

agent: T.nilable(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Agent::OrHash),

call_id: String,

caller_: T.nilable(
T.any(
OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Caller::Direct::OrHash,
Expand All @@ -105,9 +108,6 @@ module OpenAI
# The unique ID of the function call tool output.
id:,

# The unique ID of the function tool call generated by the model.
call_id:,

# The output from the function call generated by your code. Can be a string or an
# list of output content.
output:,
Expand All @@ -119,6 +119,9 @@ module OpenAI
# The agent that produced this item.
agent: nil,

# The unique ID of the function tool call generated by the model.
call_id: nil,

# The execution context that produced this tool call.
caller_: nil,

Expand All @@ -141,11 +144,11 @@ module OpenAI
override.returns(
{
id: String,
call_id: String,
output: OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Output::Variants,
status: OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Status::TaggedSymbol,
type: Symbol,
agent: T.nilable(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Agent),
call_id: String,
caller_: T.nilable(OpenAI::Beta::BetaResponseFunctionToolCallOutputItem::Caller::Variants),
created_by: String,
name: String,
Expand Down
Loading