Skip to content

feat(api): Add gpt-5.5 model and tool name/namespace fields - #326

Merged
jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-12-7061898c8ce3
Aug 3, 2026
Merged

feat(api): Add gpt-5.5 model and tool name/namespace fields#326
jbeckwith-oai merged 2 commits into
mainfrom
castiron/promotions/pr-12-7061898c8ce3

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Introduce the gpt-5.5 model variant to public model enums and add optional name and namespace fields to function tool call input/output item models (beta and stable). Update constructors and type signatures to accept these new optional fields. These are additive, backward-compatible API changes.

Changes

  • Add a new model variant :gpt-5.5 to public model enums used by chat and responses-related parameter/model types (e.g., ChatModel, ResponseCreate/CompactParams, Beta response types).
  • Add optional String attributes name and namespace to function tool call output and input item models in both beta and stable namespaces (ResponseFunctionToolCallOutputItem and ResponseInputItem). These are exposed as accessors and accepted as optional constructor parameters.
  • Update public type/signature files (RBS/RBI) and tests to reflect the new optional name and namespace fields and the new gpt-5.5 model variant.

Internal pull request: https://github.com/openai/openai-ruby-internal/pull/12

Validation

  • Generated SDK changes were copied from the internal pull request.
  • Public SDK CI runs against this draft pull request.

Castiron-Internal-PR: openai/openai-ruby-internal#12
Castiron-Source-SHA: 7061898c8ce360d8688f132bbd0f165a71c112df
Castiron-Public-Base-SHA: f53b245
Copilot AI review requested due to automatic review settings August 3, 2026 16:57
@apcha-oai apcha-oai changed the title [castiron] Update response input and function tool output types feat(api): Update response input and function tool output types Aug 3, 2026
@apcha-oai apcha-oai changed the title feat(api): Update response input and function tool output types feat(api): Update response input and function tool output types and gpt-5.5 Aug 3, 2026
@apcha-oai apcha-oai changed the title feat(api): Update response input and function tool output types and gpt-5.5 feat(api): Add gpt-5.5 model and tool name/namespace fields Aug 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Ruby SDK’s Responses/Conversations models and typing artifacts (RBS/RBI) to align with updated OpenAPI definitions, including new fields on function tool call outputs and refreshed model enums.

Changes:

  • Add name and namespace to function call output items across Responses, Conversations, and beta variants (models + tests).
  • Expand model enum/type lists to include :"gpt-5.5" across chat/responses request/response typing surfaces.
  • Add generated OpenAPI transformed reference tracking artifacts (api_reference/.gitattributes, .castiron.stats.yml).

Reviewed changes

Copilot reviewed 25 out of 36 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/openai/resources/responses/input_items_test.rb Updates pattern assertions for new name/namespace fields on function call outputs.
test/openai/resources/conversations/items_test.rb Updates pattern assertions for new name/namespace fields on function call outputs.
test/openai/resources/beta/responses/input_items_test.rb Updates beta pattern assertions for new name/namespace fields.
sig/openai/models/responses/response_input_item.rbs Adds name/namespace to response input item function call output typing.
sig/openai/models/responses/response_function_tool_call_output_item.rbs Adds name/namespace typing for function tool call output item.
sig/openai/models/responses/response_compact_params.rbs Adds :"gpt-5.5" to compact params model type.
sig/openai/models/chat_model.rbs Adds :"gpt-5.5" to ChatModel type.
sig/openai/models/beta/response_create_params.rbs Adds :"gpt-5.5" to beta response create params model type.
sig/openai/models/beta/response_compact_params.rbs Adds :"gpt-5.5" to beta compact params model type.
sig/openai/models/beta/beta_responses_client_event.rbs Adds :"gpt-5.5" to beta client event model typing.
sig/openai/models/beta/beta_response.rbs Adds :"gpt-5.5" to beta response model typing.
sig/openai/models/beta/beta_response_input_item.rbs Adds name/namespace to beta response input item function call output typing.
sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs Adds name/namespace typing for beta function tool call output item.
rbi/openai/models/responses/response_input_item.rbi Adds name/namespace accessors and Sorbet types for response input items.
rbi/openai/models/responses/response_function_tool_call_output_item.rbi Adds name/namespace accessors and Sorbet types for function tool call outputs.
rbi/openai/models/responses/response_compact_params.rbi Adds Sorbet constant for GPT_5_5.
rbi/openai/models/chat_model.rbi Adds Sorbet constant for GPT_5_5.
rbi/openai/models/beta/response_create_params.rbi Adds Sorbet constant for beta GPT_5_5.
rbi/openai/models/beta/response_compact_params.rbi Adds Sorbet constant for beta GPT_5_5.
rbi/openai/models/beta/beta_responses_client_event.rbi Adds Sorbet constant for beta client event GPT_5_5.
rbi/openai/models/beta/beta_response.rbi Adds Sorbet constant for beta response GPT_5_5.
rbi/openai/models/beta/beta_response_input_item.rbi Adds name/namespace accessors and Sorbet types for beta response input items.
rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi Adds name/namespace accessors and Sorbet types for beta function tool call outputs.
lib/openai/models/responses/response_input_item.rb Adds optional name/namespace fields to response input item function call outputs.
lib/openai/models/responses/response_function_tool_call_output_item.rb Adds optional name/namespace fields to function tool call output item model.
lib/openai/models/responses/response_compact_params.rb Adds GPT_5_5 to compact params model variants/constants.
lib/openai/models/chat_model.rb Adds GPT_5_5 constant to ChatModel.
lib/openai/models/beta/response_create_params.rb Adds GPT_5_5 to beta response create params variants/constants.
lib/openai/models/beta/response_compact_params.rb Adds GPT_5_5 to beta compact params variants/constants.
lib/openai/models/beta/beta_responses_client_event.rb Adds GPT_5_5 to beta client event variants/constants.
lib/openai/models/beta/beta_response.rb Adds GPT_5_5 to beta response variants/constants.
lib/openai/models/beta/beta_response_input_item.rb Adds optional name/namespace fields to beta response input item function call outputs.
lib/openai/models/beta/beta_response_function_tool_call_output_item.rb Adds optional name/namespace fields to beta function tool call output item model.
api_reference/.gitattributes Configures git attributes for the transformed OpenAPI reference file.
.castiron.stats.yml Adds generation metadata for the transformed OpenAPI/codegen sync.
Files not reviewed (10)
  • rbi/openai/models/beta/beta_response.rbi: File type not supported
  • rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi: File type not supported
  • rbi/openai/models/beta/beta_response_input_item.rbi: File type not supported
  • rbi/openai/models/beta/beta_responses_client_event.rbi: File type not supported
  • rbi/openai/models/beta/response_compact_params.rbi: File type not supported
  • rbi/openai/models/beta/response_create_params.rbi: File type not supported
  • rbi/openai/models/chat_model.rbi: File type not supported
  • rbi/openai/models/responses/response_compact_params.rbi: File type not supported
  • rbi/openai/models/responses/response_function_tool_call_output_item.rbi: File type not supported
  • rbi/openai/models/responses/response_input_item.rbi: File type not supported
Suppressed comments (4)

sig/openai/models/responses/response_function_tool_call_output_item.rbs:63

  • to_hash is typed as returning created_by, name, and namespace as non-nil String, but these fields are nilable on the model. Update the return type to reflect possible nil values.
    rbi/openai/models/responses/response_function_tool_call_output_item.rbi:137
  • to_hash return type marks created_by, name, and namespace as non-nil String, but these fields are modeled as T.nilable(String) and can be missing/unset. Adjust the return type to avoid incorrect typing.
    rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi:170
  • to_hash return type marks created_by, name, and namespace as non-nil String, but these fields are modeled as T.nilable(String) and can be missing/unset. Adjust the return type to avoid incorrect typing.
    sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs:70
  • to_hash is typed as returning created_by, name, and namespace as non-nil String, but these fields are nilable on the model. Update the return type to reflect possible nil values.
          created_by: String,
          name: String,
          namespace: String

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +14
created_by: String,
name: String,
namespace: String
Comment on lines +15 to +17
created_by: String,
name: String,
namespace: String
Comment on lines 91 to +93
created_by: String,
name: String,
namespace: String,
Comment on lines 118 to +120
created_by: String,
name: String,
namespace: String,
@jbeckwith-oai jbeckwith-oai added the generator Touches generated SDK files label Aug 3, 2026
@apcha-oai
apcha-oai marked this pull request as ready for review August 3, 2026 17:25
@apcha-oai
apcha-oai requested a review from a team as a code owner August 3, 2026 17:25
@openai-sdks

openai-sdks Bot commented Aug 3, 2026

Copy link
Copy Markdown

OkTest Summary

237/237 SDK tests passed in 8.441s for Ruby SDK PR #326.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 196ms
tests/chat-completions-create.test.ts ✅ Passed 209ms
tests/chat-completions-stream.test.ts ✅ Passed 119ms
tests/files-content-binary.test.ts ✅ Passed 290ms
tests/files-create-multipart.test.ts ✅ Passed 223ms
tests/files-list-pagination.test.ts ✅ Passed 180ms
tests/initialize-config.test.ts ✅ Passed 159ms
tests/instance-isolation.test.ts ✅ Passed 257ms
tests/models-list.test.ts ✅ Passed 162ms
tests/responses-background-lifecycle.test.ts ✅ Passed 187ms
tests/responses-body-method-errors.test.ts ✅ Passed 409ms
tests/responses-cancel-timeout.test.ts ✅ Passed 213ms
tests/responses-cancel.test.ts ✅ Passed 224ms
tests/responses-compact-retries.test.ts ✅ Passed 240ms
tests/responses-compact.test.ts ✅ Passed 234ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 151ms
tests/responses-create-advanced.test.ts ✅ Passed 187ms
tests/responses-create-disconnect.test.ts ✅ Passed 147ms
tests/responses-create-errors.test.ts ✅ Passed 223ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 124ms
tests/responses-create-retries.test.ts ✅ Passed 294ms
tests/responses-create-stream-failures.test.ts ✅ Passed 143ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 233ms
tests/responses-create-stream-wire.test.ts ✅ Passed 1.953s
tests/responses-create-stream.test.ts ✅ Passed 74ms
tests/responses-create-terminal-states.test.ts ✅ Passed 279ms
tests/responses-create-timeout.test.ts ✅ Passed 197ms
tests/responses-create.test.ts ✅ Passed 297ms
tests/responses-delete.test.ts ✅ Passed 311ms
tests/responses-input-items-errors.test.ts ✅ Passed 180ms
tests/responses-input-items-list.test.ts ✅ Passed 196ms
tests/responses-input-items-options.test.ts ✅ Passed 237ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 266ms
tests/responses-input-tokens-count.test.ts ✅ Passed 205ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.087s
tests/responses-not-found-errors.test.ts ✅ Passed 302ms
tests/responses-parse.test.ts ✅ Passed 161ms
tests/responses-retrieve-retries.test.ts ✅ Passed 300ms
tests/responses-retrieve.test.ts ✅ Passed 265ms
tests/responses-stored-method-errors.test.ts ✅ Passed 742ms
tests/retry-behavior.test.ts ✅ Passed 1.896s
tests/sdk-error-shape.test.ts ✅ Passed 328ms

View OkTest run #30837008204

SDK merge (c200bcefb9a1) · head (4d5fff24ceb6) · base (04b3b1baf4b7) · OkTest (91635c6a2723)

Copilot AI review requested due to automatic review settings August 3, 2026 17:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 25 out of 36 changed files in this pull request and generated no new comments.

Files not reviewed (10)
  • rbi/openai/models/beta/beta_response.rbi: File type not supported
  • rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi: File type not supported
  • rbi/openai/models/beta/beta_response_input_item.rbi: File type not supported
  • rbi/openai/models/beta/beta_responses_client_event.rbi: File type not supported
  • rbi/openai/models/beta/response_compact_params.rbi: File type not supported
  • rbi/openai/models/beta/response_create_params.rbi: File type not supported
  • rbi/openai/models/chat_model.rbi: File type not supported
  • rbi/openai/models/responses/response_compact_params.rbi: File type not supported
  • rbi/openai/models/responses/response_function_tool_call_output_item.rbi: File type not supported
  • rbi/openai/models/responses/response_input_item.rbi: File type not supported
Suppressed comments (6)

sig/openai/models/responses/response_function_tool_call_output_item.rbs:63

  • to_hash is declared to always return non-nil created_by, name, and namespace, but these are optional fields and may be absent/unset at runtime. The return type should allow nil for these values to avoid misleading type guarantees.
    sig/openai/models/responses/response_function_tool_call_output_item.rbs:14
  • In the RBS record type response_function_tool_call_output_item, the newly added name and namespace (and existing created_by) are typed as required non-nil String, but the Ruby model exposes them as optional fields (they can be absent and read back as nil). This makes the public type stricter than runtime behavior and contradicts the tests that treat these fields as nilable.
    sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs:17
  • In the RBS record type beta_response_function_tool_call_output_item, the newly added name and namespace (and existing created_by) are typed as required non-nil String, but these are optional fields on the Ruby model and can read back as nil when absent. This makes the public type stricter than runtime behavior.
          caller_: OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::caller_?,
          created_by: String,
          name: String,
          namespace: String

sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs:70

  • to_hash is declared to always return non-nil created_by, name, and namespace, but these fields are optional and may be absent/unset at runtime. The return type should allow nil for these values.
          caller_: OpenAI::Models::Beta::BetaResponseFunctionToolCallOutputItem::caller_?,
          created_by: String,
          name: String,
          namespace: String

rbi/openai/models/responses/response_function_tool_call_output_item.rbi:137

  • The to_hash return type marks created_by, name, and namespace as non-nil String, but these fields are optional on the model and may be absent/unset (so accessing them from the returned hash can yield nil). This should be reflected in the RBI return type.
    rbi/openai/models/beta/beta_response_function_tool_call_output_item.rbi:170
  • The to_hash return type marks created_by, name, and namespace as non-nil String, but these are optional fields and may be absent/unset at runtime (so reading them from the returned hash can yield nil). Update the RBI return type to be nilable.

@jbeckwith-oai
jbeckwith-oai merged commit d46c2e3 into main Aug 3, 2026
13 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-12-7061898c8ce3 branch August 3, 2026 17:37
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
@stainless-app stainless-app Bot mentioned this pull request Aug 3, 2026
@github-actions github-actions Bot mentioned this pull request Aug 3, 2026
jbeckwith-oai pushed a commit that referenced this pull request Aug 3, 2026
Automated Release PR
---


##
[0.77.0](v0.76.0...v0.77.0)
(2026-08-03)


### Features

* **api:** promote Ruby SDK changes
([#326](#326))
([d46c2e3](d46c2e3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator Touches generated SDK files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants