-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from AgentOps-AI/stripe-tool
Add Stripe tooling
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
from stripe_agent_toolkit.crewai.toolkit import StripeAgentToolkit | ||
from dotenv import load_dotenv | ||
load_dotenv() | ||
|
||
stripe_tools = StripeAgentToolkit( | ||
secret_key=os.getenv("STRIPE_SECRET_KEY"), | ||
configuration={ | ||
"actions": { | ||
"payment_links": { | ||
"create": True, | ||
"read": True, | ||
"update": False | ||
}, | ||
"products": { | ||
"create": True, | ||
"update": True | ||
}, | ||
"prices": { | ||
"create": True, | ||
"update": True | ||
}, | ||
} | ||
}).get_tools() |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "stripe", | ||
"package": "poetry add stripe-agent-toolkit stripe", | ||
"env": "STRIPE_SECRET_KEY=sk-...", | ||
"tools_bundled": true, | ||
"tools": ["stripe_tools"], | ||
"cta": "🔑 Create your Stripe API key here: https://dashboard.stripe.com/account/apikeys" | ||
} |
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