Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions .changeset/yellow-singers-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@trymeka/computer-provider-anchor-browser": patch
"@trymeka/computer-provider-scrapybara": patch
"@trymeka/computer-provider-core": patch
"@trymeka/computer-provider-e2b": patch
"@trymeka/ai-provider-vercel": patch
"@trymeka/core": patch
---

Fix repair tool call
10 changes: 2 additions & 8 deletions packages/ai-provider-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/ai-provider-vercel"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/ai-provider-vercel#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
9 changes: 5 additions & 4 deletions packages/ai-provider-vercel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ export function createVercelAIProvider({

return {
...toolCall,
input: JSON.stringify({
input: {
action: result.object,
reasoning: toolCallResult.args.reasoning,
previousStepEvaluation:
toolCallResult.args.previousStepEvaluation,
nextStepGoal: toolCallResult.args.nextStepGoal,
currentStepReasoning: toolCallResult.args.currentStepReasoning,
} satisfies ComputerToolArgs),
} satisfies ComputerToolArgs,
};
}

Expand Down Expand Up @@ -220,7 +220,7 @@ export function createVercelAIProvider({

return {
...toolCall,
input: JSON.stringify(result.object),
input: result.object,
};
},
maxRetries: 3,
Expand All @@ -232,7 +232,8 @@ export function createVercelAIProvider({
toolCalls: result.toolCalls.map((tc) => ({
toolCallId: tc.toolCallId,
toolName: tc.toolName,
args: tc.input,
// Parse args if they're a string, otherwise pass through as-is
args: typeof tc.input === "string" ? JSON.parse(tc.input) : tc.input,
})),
usage: result.usage,
};
Expand Down
10 changes: 2 additions & 8 deletions packages/computer-provider-anchor-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/computer-provider-anchor-browser"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-anchor-browser#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
10 changes: 2 additions & 8 deletions packages/computer-provider-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/computer-provider-core"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-core#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
10 changes: 2 additions & 8 deletions packages/computer-provider-e2b/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/computer-provider-e2b"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-e2b#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
10 changes: 2 additions & 8 deletions packages/computer-provider-scrapybara/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/computer-provider-scrapybara"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-scrapybara#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
10 changes: 2 additions & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
"access": "public"
},
"description": "TODO: Add description",
"keywords": [
"trymeka"
],
"keywords": ["trymeka"],
"repository": {
"type": "git",
"url": "git+https://github.com/trymeka/agent.git",
"directory": "packages/agent"
},
"license": "MIT",
"homepage": "https://github.com/trymeka/agent/tree/main/packages/agent#readme",
"files": [
"dist",
"!dist/**/*.map",
"README.md"
],
"files": ["dist", "!dist/**/*.map", "README.md"],
"exports": {
".": {
"typescript": "./src/index.ts",
Expand Down
Loading