Skip to content

Commit

Permalink
Avoid inclusion of _tag in tool call parameters (#4545)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored Mar 3, 2025
1 parent 9bf8a74 commit a95108a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-starfishes-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/ai": patch
---

Avoid inclusion of `_tag` in tool call JSONSchema
2 changes: 1 addition & 1 deletion packages/ai/ai/src/Completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ const convertTool = <A, I, R>(
) => ({
name,
description: getDescription(schema.ast),
parameters: makeJsonSchema(schema.ast),
parameters: makeJsonSchema(AST.omit(schema.ast, ["_tag"])),
structured
})

Expand Down

0 comments on commit a95108a

Please sign in to comment.