-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add anthropic as a provider This depends on inngest/inngest-js#764, which exposes model options in Inngest's model provider. This makes types happy. * fix(adapters): `tool_choice = "auto"` + safely parse JSON generated by OpenAI * fix(agent): implement tool calling loop in `Agent()` * Fix linting, switch compile error * Further fixes * Fix up parsing to be a touch safer * fix(network): `select_agent` fix + disable iterations on Agent when ran with a network * feat(demo): restore demo, working demo * Fix invalid `step` typing being too specific Also fixes this not being compatible with prev/next versions. * Use `AiAdapter.Any` for easier subtype checking * Shift back to stable `inngest` version * Update agent, state, and tool types * Allow passing state into `agent.run()` and `new Network()` * comments * Comments --------- Co-authored-by: Tony Holdstock-Brown <[email protected]> Co-authored-by: Jack Williams <[email protected]>
- Loading branch information
1 parent
a2135c1
commit 56cf929
Showing
15 changed files
with
1,356 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
"build": "rm -rf dist && tsc", | ||
"lint": "eslint .", | ||
"release": "pnpm run build && changeset publish", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"dev": "nodemon --watch demo -e ts --exec \"ts-node -P tsconfig-demo.json demo/index.ts\"" | ||
}, | ||
"files": [ | ||
"dist" | ||
|
@@ -38,14 +39,16 @@ | |
} | ||
}, | ||
"dependencies": { | ||
"inngest": "3.27.1", | ||
"inngest": "^3.27.4", | ||
"express": "^4.21.1", | ||
"openai-zod-to-json-schema": "^1.0.3", | ||
"zod": "^3.23.8" | ||
}, | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.10", | ||
"@eslint/js": "^9.15.0", | ||
"@types/express": "^5.0.0", | ||
"@types/node": "^22.9.1", | ||
"@typescript-eslint/eslint-plugin": "^8.15.0", | ||
"@typescript-eslint/parser": "^8.15.0", | ||
|
@@ -54,7 +57,9 @@ | |
"eslint-plugin-prettier": "^5.2.1", | ||
"husky": ">=7", | ||
"lint-staged": ">=10", | ||
"nodemon": "^3.0.2", | ||
"prettier": "^3.3.3", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.6.3", | ||
"typescript-eslint": "^8.15.0" | ||
}, | ||
|
Oops, something went wrong.