Skip to content

chore: release main#90

Merged
felixfbecker merged 34 commits intomainfrom
release-please--branches--main--changes--next
Jan 14, 2026
Merged

chore: release main#90
felixfbecker merged 34 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented Jan 9, 2026

✨ Stainless prepared a new release

Anthropic: 12.2.0

12.2.0 (2026-01-14)

Full Changelog: Anthropic-v12.1.0...Anthropic-v12.2.0

Features

  • client: add helper functions for raw messages (c38e0f1)
  • client: add more ToString implementations (ebebe2a)
  • client: add strong naming (4feeae5)
  • client: support WithRawResponse in Foundry client (#92) (39ffeb2)
  • client: support accessing raw responses (81ad4fe)

Bug Fixes

  • client: add missing serializer options (f08055c)
  • client: copy path params in params copy constructors (23fd7c6)
  • client: ensure deep immutability for deep array/dict structures (d9385f7)
  • client: freeze models on property access (4aec2c8)
  • client: throw api enum errors as invalid data exception (6028977)
  • client: union switch method type checks (e0c4fcb)
  • client: use readonly type for param (b00209c)
  • internal: accidental custom code (2025fbb)
  • internal: build (74ac455)
  • internal: remove redundant line (ed85010)
  • internal: remove roundtrip tests for multipart params (1e3f6e1)
  • use Properties initializer for InputSchema in IChatClient extensions (#83) (b4d9faf)

Performance Improvements

  • client: add json deserialization caching (d9385f7)

Chores

  • client: consistently use serializer options (d02b2fa)
  • client: mark claude-3-5-haiku as deprecated (b5f147c)
  • client: use mutable collections for union deserialization (bd75f30)
  • internal: codegen related update (8565b06)
  • internal: codegen related update (df7fd3c)
  • internal: format (3af90a7)
  • internal: use better namespace aliases (16b810a)
  • readme: remove beta warning now that we're in ga (613b5ce)

Refactors

  • client: add JsonDictionary identity methods (2c26557)
  • client: make unions implement ModelBase (8500f1e)
  • internal: JsonElement constant construction (bb19b2b)
  • internal: unnest constant converter (65a1eec)
Foundry: 0.4.0

0.4.0 (2026-01-14)

Full Changelog: Foundry-v0.3.0...Foundry-v0.4.0

Features

  • client: support WithRawResponse in Foundry client (#92) (39ffeb2)

Chores

  • internal: codegen related update (8565b06)
  • internal: codegen related update (df7fd3c)
  • readme: remove beta warning now that we're in ga (613b5ce)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

…ions (#83)

* chore(ci): Add Claude Code GitHub Workflow (#273)

* "Claude PR Assistant workflow"

* "Claude Code Review workflow"

* fix: use Properties initializer for InputSchema in IChatClient extensions

The InputSchema constructor was being passed properties as rawData,
which caused them to be serialized at the top level of the JSON object
instead of under a "properties" key. This resulted in invalid JSON Schema
that failed Anthropic API validation with error:
"tools.0.custom.input_schema: JSON schema is invalid"

The fix uses property initializer syntax to correctly populate the
Properties property, ensuring the schema is valid JSON Schema draft 2020-12.

Also updates tests to expect the corrected schema format.

Fixes #82

* Remove added workflows

---------

Co-authored-by: dtmeadows <dmeadows@stainless.com>
@stainless-app stainless-app Bot requested a review from a team as a code owner January 9, 2026 16:30
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch 3 times, most recently from 6aac326 to 4f7601b Compare January 12, 2026 05:14
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4f7601b to 960b9db Compare January 12, 2026 17:10
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 960b9db to 0f18d09 Compare January 13, 2026 05:11
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 9e34cb1 to e7ff2bd Compare January 13, 2026 21:30
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 27c10a8 to 4f8fed0 Compare January 13, 2026 21:37
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4f8fed0 to 4275f00 Compare January 13, 2026 21:44
* Fix rebase merge conflicts

* Rename factory field for rawResponse enabled client

* Fix Linter
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4275f00 to 1d12cce Compare January 13, 2026 21:46
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 1d12cce to 9a4c9ad Compare January 13, 2026 21:48
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 9a4c9ad to 098bd2b Compare January 13, 2026 21:59
@TomerAberbach
Copy link
Copy Markdown
Collaborator

@stephentoub there was a bug for a while that was causing tests not to run on CI; this is fixed on next, but it seems that some of the custom code tests are failing:

https://github.com/anthropics/anthropic-sdk-csharp/actions/runs/20974065747/job/60284513276?pr=90

Just wanted to make sure this is on your radar!

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 098bd2b to 04b1097 Compare January 14, 2026 05:10
@stephentoub
Copy link
Copy Markdown
Contributor

Just wanted to make sure this is on your radar!

I wasn't, thanks. It looks like #83 didn't fix all the necessary tests that were impacted.

I just went to address them, but the next branch isn't building at all for me. Is that expected?

@sd-st
Copy link
Copy Markdown
Collaborator

sd-st commented Jan 14, 2026

Hmm, it builds fine for me (with one warning in an example, which probably should be fixed). What error are you running into?

@stephentoub
Copy link
Copy Markdown
Contributor

Restore complete (2.2s)
  Anthropic netstandard2.0 failed with 86 error(s) (1.8s)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\ErrorObject.cs(106,24): error CS0246: The type or namespace name 'ApiErrorObject' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\ErrorObject.cs(285,52): error CS0246: The type or namespace name 'ApiErrorObject' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\ErrorObject.cs(347,16): error CS0246: The type or namespace name 'ApiErrorObject' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\ErrorObject.cs(423,14): error CS0246: The type or namespace name 'ApiErrorObject' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\ErrorObject.cs(458,49): error CS0246: The type or namespace name 'ApiErrorObject' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\Beta\BetaError.cs(106,22): error CS0246: The type or namespace name 'BetaApiError' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\Beta\BetaError.cs(285,52): error CS0246: The type or namespace name 'BetaApiError' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\Beta\BetaError.cs(347,16): error CS0246: The type or namespace name 'BetaApiError' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\Beta\BetaError.cs(423,14): error CS0246: The type or namespace name 'BetaApiError' could not be found (are you missing a using directive or an assembly reference?)
    D:\repos\anthropic-sdk-csharp\src\Anthropic\Models\Beta\BetaError.cs(458,47): error CS0246: The type or namespace name 'BetaApiError' could not be found (are you missing a using directive or an assembly reference?)
...

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 04b1097 to 9fa0819 Compare January 14, 2026 16:40
@stephentoub
Copy link
Copy Markdown
Contributor

@sd-st, for example, the next branch doesn't appear to contain a definition for BetaAPIError:
https://github.com/anthropics/anthropic-sdk-csharp/blob/next/src/Anthropic/Models/Beta/BetaAPIError.cs
even though it's used in the next branch:

public BetaError(BetaApiError value, JsonElement? element = null)

@TomerAberbach
Copy link
Copy Markdown
Collaborator

Your second link shows BetaApiError, which does exist (it was renamed from BetaAPIError to BetaApiError per C# naming conventions)

@stephentoub
Copy link
Copy Markdown
Contributor

It does now. History keeps getting rewritten in next so I can't figure out when it was fixed, but I've just pulled it down again (vs having pulled it down a couple of hours ago) and it now builds.

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 9fa0819 to 4d7249d Compare January 14, 2026 19:27
@felixfbecker felixfbecker merged commit f325493 into main Jan 14, 2026
7 of 8 checks passed
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Jan 14, 2026

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Jan 14, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants