Skip to content

v4 ai improvements #1863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed the tool options being passed to metadata in ai.tool
  • Loading branch information
ericallam committed Apr 2, 2025
commit 0c44c9a855ff9f54b69ca9cd983675832f9925cc
4 changes: 2 additions & 2 deletions packages/trigger-sdk/src/v3/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ function toolFromTask<
);
}

const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;

return tool({
description: task.description,
parameters: convertTaskSchemaToToolParameters(task.schema),
execute: async (args, options) => {
const serializedOptions = options ? JSON.parse(JSON.stringify(options)) : undefined;

return await task
.triggerAndWait(args, {
metadata: {
Expand Down