Skip to content

fix(ai): support empty tool parameters#6260

Merged
IMax153 merged 4 commits into
mainfrom
feat/ai-tool-empty-params
Jun 5, 2026
Merged

fix(ai): support empty tool parameters#6260
IMax153 merged 4 commits into
mainfrom
feat/ai-tool-empty-params

Conversation

@IMax153

@IMax153 IMax153 commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

  • support Tool.EmptyParams as a tool parameters schema
  • update tool call response typing to derive params from Tool.Parameters
  • add tstyche coverage for AI tool parameter inference

Testing

  • pnpm test-types
  • pnpm lint-fix
  • pnpm test run packages/ai/ai/test/Tool.test.ts
  • pnpm check

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jun 4, 2026
@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3a976a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@effect/ai Minor
@effect/ai-amazon-bedrock Major
@effect/ai-anthropic Major
@effect/ai-google Major
@effect/ai-openai Major
@effect/ai-openrouter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@IMax153 IMax153 merged commit 02ae8fb into main Jun 5, 2026
11 checks passed
@IMax153 IMax153 deleted the feat/ai-tool-empty-params branch June 5, 2026 13:14
@github-project-automation github-project-automation Bot moved this from Discussion Ongoing to Done in PR Backlog Jun 5, 2026
@github-actions github-actions Bot mentioned this pull request Jun 5, 2026
Hoishin added a commit to Hoishin/effect that referenced this pull request Jun 8, 2026
* upstream/main:
  Version Packages (Effect-TS#6259)
  fix(ai): support empty tool parameters (Effect-TS#6260)
  fix(Data): preserve generic A in TaggedEnum $match arms (Effect-TS#6250)
  Emit `additionalProperties: false` for records with string keys and `Schema.Never` values (Effect-TS#6257)
  Version Packages (Effect-TS#6227)
  Backport cluster shard group fixes (Effect-TS#6255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants