Skip to content

Conversation

@PederHP
Copy link
Contributor

@PederHP PederHP commented Dec 12, 2025

See: modelcontextprotocol/csharp-sdk#1091

Tools with ["integer", "null"] discriminated union style types to provide additional information on default when non provided for non-required properties would cause the following error:

tools.0.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.claude.com/en/docs/tool-use.

stainless-app bot and others added 30 commits December 2, 2025 00:37
* Add some more tests for Anthropic{Beta}ClientExtensions

* Fix csharpier
* Readd TestBase

* Use single source of truth for test parameter

* Readd baseclass for codegen compatibility

* Fix code style
refactor(internal): share get/set logic
* docs: correct reqs

* chore(internal): suppress diagnostic for .netstandard2.0

* feat(client): improve csproj

* chore(internal): set up cron release job

* fix(internal): running net462 tests on ci

* Improve code style on examples
Remove obsolete examples
Include all examples in example sln

* codestyle improvements

* adapt build script to also build examples

---------

Co-authored-by: Tomer Aberbach <[email protected]>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
* Update version for src/Anthropic in manifest

* Add src/Anthropic to release-please config
The implementation was missing a clear on the collection of streaming data. As such, it would each tool already yielded every time it yielded another tool.
anthropics#63)

* Add beta headers automatically for HostedCodeInterpreter/McpServerTool

* format
…s#58)

* Add WithSkills convenience method to MEAI extensions

* Refactor to use AsAITool approach

* Align with existing AsAITool pattern

* Unify with beta header inclusion from anthropics#63

* Fix bug

* Ran /scripts/format

* Update src/Anthropic/Services/Beta/Messages/AnthropicBetaClientExtensions.cs

Co-authored-by: Stephen Toub <[email protected]>

---------

Co-authored-by: Stephen Toub <[email protected]>
stephentoub and others added 2 commits December 11, 2025 15:37
* Improve reporting of token counts in UsageDetails

- InputTokenCount needs to reflect cached tokens.
- Only add to AdditionalCounts for positive counts.
- Added reporting of WebFetch/SearchRequests.

* lint

* lint take 2
@PederHP PederHP requested a review from a team as a code owner December 12, 2025 17:32
@PederHP PederHP changed the title Normalize nullable union tool types MicrosoftExtensions: Normalize nullable union tool types Dec 12, 2025
@PederHP PederHP force-pushed the meai_fix_tool_types branch from f984bf5 to f0d5a56 Compare December 12, 2025 18:21
@stainless-app stainless-app bot force-pushed the next branch 2 times, most recently from a6ccfa7 to 007b0c0 Compare December 18, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants