-
Notifications
You must be signed in to change notification settings - Fork 1
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
Agent()
tool calling loop + Network()
ReAct impl.
#17
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
162e6e4
Add anthropic as a provider
tonyhb c489a00
fix(adapters): `tool_choice = "auto"` + safely parse JSON generated b…
charlypoly bca099c
fix(agent): implement tool calling loop in `Agent()`
charlypoly d0a5228
Fix linting, switch compile error
jpwilliams a60d2f8
Further fixes
jpwilliams 0b83ca0
Fix up parsing to be a touch safer
jpwilliams e6cf806
fix(network): `select_agent` fix + disable iterations on Agent when r…
charlypoly 65c86db
feat(demo): restore demo, working demo
charlypoly 8e9ed82
Fix invalid `step` typing being too specific
jpwilliams abdcc18
Use `AiAdapter.Any` for easier subtype checking
jpwilliams 81c01bd
Shift back to stable `inngest` version
jpwilliams 5ca44f0
Update agent, state, and tool types
tonyhb 0301270
Allow passing state into `agent.run()` and `new Network()`
tonyhb b5de2cf
comments
tonyhb 1914a3a
Comments
tonyhb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\"" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. temporary crap to make the demo work with the local AgentKit library |
||
}, | ||
"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": "pnpm@9.14.2", | ||
"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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temporary, for the sake of local testing and iterations