-
Notifications
You must be signed in to change notification settings - Fork 368
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
feat: npm cli - generate core primitives #589
Open
CarsonRoscoe
wants to merge
27
commits into
main
Choose a base branch
from
feat/npm-cli-generate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1,859
−111
Conversation
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
🟡 Heimdall Review Status
|
pattiscott973
approved these changes
Mar 19, 2025
Review Error for pattiscott973 @ 2025-03-19 20:47:42 UTC |
599408a
to
6bbd7bb
Compare
0xRAG
reviewed
Mar 20, 2025
99c7c37
to
fc60dac
Compare
0xRAG
reviewed
Mar 21, 2025
typescript/create-onchain-agent/templates/walletProvider/walletProvider.njk
Outdated
Show resolved
Hide resolved
0xRAG
reviewed
Mar 21, 2025
typescript/create-onchain-agent/templates/createAgent/framework/langchain/createAgent.ts
Outdated
Show resolved
Hide resolved
0xRAG
reviewed
Mar 21, 2025
0xRAG
reviewed
Mar 21, 2025
0xRAG
reviewed
Mar 21, 2025
0xRAG
reviewed
Mar 21, 2025
0xRAG
reviewed
Mar 21, 2025
typescript/create-onchain-agent/src/actions/createActionProvider.ts
Outdated
Show resolved
Hide resolved
0xRAG
reviewed
Mar 21, 2025
typescript/create-onchain-agent/templates/actionProvider/actionProvider.njk
Outdated
Show resolved
Hide resolved
…ction and propogated through the template
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds a suite of generative tools to generate the core building blocks for AgentKit. The use-case for these tools is to easily add AgentKit to an existing application.
The base
npm create onchain-agent
behavior is unchanged. It remains the quickstart CLI.After installing create-onchain-agent, a second cli,
agentkit
, will be installed alongside it. This allows you to access the following 4 new commands:This PR adds the following 4 new commands:
agentkit generate wallet-provider
will generate a custom wallet provider (e.g.turnkeyWalletProvider.ts
)agentkit generate action-provider
will generate a custom action provider (e.g.baseActionProvider.ts
)agentkit generate prepare
will generate aprepareAgentkit.ts
file that will do all the framework-agnostic Agentkit work. This function will return the the results fromAgentkit.from(walletProvider, actionProviders)
along with the associated walletProvider.agentkit generate create-agent
will generate acreateAgent.ts
file that is framework-specific. It assumes the existence of an associatedprepareAgentkit.ts
file.Tests
create onchain-agent
regression tests worked and are unchanged in behavioragentkit generate prepare
casesagentkit generate create-agent
casesagentkit generate wallet-provider
caseagentkit generate action-provider
caseChecklist
A couple of things to include in your PR for completeness: