feat(agents)!: Improve toolspec api with schemars and support all possible types#940
Merged
feat(agents)!: Improve toolspec api with schemars and support all possible types#940
Conversation
bb841b2 to
1cc2658
Compare
Merged
timonv
pushed a commit
that referenced
this pull request
Nov 5, 2025
## 🤖 New release * `swiftide-core`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide-macros`: 0.31.3 -> 0.32.0 * `swiftide-indexing`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide-agents`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide-integrations`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide-langfuse`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide-query`: 0.31.3 -> 0.32.0 (✓ API compatible changes) * `swiftide`: 0.31.3 -> 0.32.0 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> ## `swiftide` <blockquote> ## [0.32.0](v0.31.3...v0.32.0) - 2025-11-05 ### New features - [9ae3331](9ae3331) *(agents)* [**breaking**] Improve toolspec api with schemars and support all possible types ([#940](#940)) **BREAKING CHANGE**: macro-level `json_type` overrides beyond the basic primitives are no longer enforced; rely on Rust type inference or provide an explicit schemars-derived struct/custom schema when specific shapes are required - [a0cc8d7](a0cc8d7) *(agents)* Stop with args with optional schema ([#950](#950)) - [8ad7d97](8ad7d97) *(agents)* Add configurable timeouts to commands and local executor ([#963](#963)) - [29289d3](29289d3) *(agents)* [**breaking**] Add working directories for executor and commands ([#941](#941)) **BREAKING CHANGE**: Add working directories for executor and commands ([#941](#941)) - [ce724e5](ce724e5) *(agents/mcp)* Prefix mcp tools with the server name ([#958](#958)) ### Bug fixes - [04cd88b](04cd88b) *(docs)* Replace `feature(doc_auto_cfg)` with `doc(auto_cfg)` - [7873ce5](7873ce5) *(integrations/openai)* Simplefy responses api and improve chat completion request ergonomics ([#956](#956)) - [24328d0](24328d0) *(macros)* Ensure deny_unknown_attributes is set on generated args ([#948](#948)) - [54245d0](54245d0) Update async-openai and fix responses api ([#964](#964)) - [72a6c92](72a6c92) Force additionalProperties properly on completion requests ([#949](#949)) **Full Changelog**: 0.31.3...0.32.0 </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tool_custom_schemaexample that wraps a manualToolimplementation around aschema_for!definition for fine-grained schema controlBREAKING CHANGE: macro-level
json_typeoverrides beyond the basic primitives are no longer enforced; rely on Rust type inference or provide an explicit schemars-derived struct/custom schema when specific shapes are required