Skip to content

Commit 16fce07

Browse files
authored
Es/fix input tool call (#82)
* Revert some areas of prior fix that expects stringified objects * Chagenset
1 parent b37e73f commit 16fce07

File tree

8 files changed

+25
-51
lines changed

8 files changed

+25
-51
lines changed

.changeset/tough-jars-cheat.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@trymeka/computer-provider-anchor-browser": patch
3+
"@trymeka/computer-provider-scrapybara": patch
4+
"@trymeka/computer-provider-core": patch
5+
"@trymeka/computer-provider-e2b": patch
6+
"@trymeka/ai-provider-vercel": patch
7+
"@trymeka/core": patch
8+
---
9+
10+
Actually fix the input repair problem

packages/ai-provider-vercel/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/ai-provider-vercel"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/ai-provider-vercel#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"types": "./dist/index.d.ts",

packages/ai-provider-vercel/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ export function createVercelAIProvider({
176176

177177
return {
178178
...toolCall,
179-
input: {
179+
input: JSON.stringify({
180180
action: result.object,
181181
reasoning: toolCallResult.args.reasoning,
182182
previousStepEvaluation:
183183
toolCallResult.args.previousStepEvaluation,
184184
nextStepGoal: toolCallResult.args.nextStepGoal,
185185
currentStepReasoning: toolCallResult.args.currentStepReasoning,
186-
} satisfies ComputerToolArgs,
186+
} satisfies ComputerToolArgs),
187187
};
188188
}
189189

@@ -220,7 +220,7 @@ export function createVercelAIProvider({
220220

221221
return {
222222
...toolCall,
223-
input: result.object,
223+
input: JSON.stringify(result.object),
224224
};
225225
},
226226
maxRetries: 3,

packages/computer-provider-anchor-browser/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/computer-provider-anchor-browser"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-anchor-browser#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"types": "./dist/index.d.ts",

packages/computer-provider-core/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/computer-provider-core"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-core#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"types": "./dist/index.d.ts",

packages/computer-provider-e2b/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/computer-provider-e2b"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-e2b#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"types": "./dist/index.d.ts",

packages/computer-provider-scrapybara/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/computer-provider-scrapybara"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/computer-provider-scrapybara#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"types": "./dist/index.d.ts",

packages/core/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@
66
"access": "public"
77
},
88
"description": "TODO: Add description",
9-
"keywords": [
10-
"trymeka"
11-
],
9+
"keywords": ["trymeka"],
1210
"repository": {
1311
"type": "git",
1412
"url": "git+https://github.com/trymeka/agent.git",
1513
"directory": "packages/agent"
1614
},
1715
"license": "MIT",
1816
"homepage": "https://github.com/trymeka/agent/tree/main/packages/agent#readme",
19-
"files": [
20-
"dist",
21-
"!dist/**/*.map",
22-
"README.md"
23-
],
17+
"files": ["dist", "!dist/**/*.map", "README.md"],
2418
"exports": {
2519
".": {
2620
"typescript": "./src/index.ts",

0 commit comments

Comments
 (0)