Skip to content

Commit 2ebaa93

Browse files
authored
Merge pull request #50 from AgentOps-AI/stripe-tool
Add Stripe tooling
2 parents 0d4d569 + 4ca392e commit 2ebaa93

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import os
2+
from stripe_agent_toolkit.crewai.toolkit import StripeAgentToolkit
3+
from dotenv import load_dotenv
4+
load_dotenv()
5+
6+
stripe_tools = StripeAgentToolkit(
7+
secret_key=os.getenv("STRIPE_SECRET_KEY"),
8+
configuration={
9+
"actions": {
10+
"payment_links": {
11+
"create": True,
12+
"read": True,
13+
"update": False
14+
},
15+
"products": {
16+
"create": True,
17+
"update": True
18+
},
19+
"prices": {
20+
"create": True,
21+
"update": True
22+
},
23+
}
24+
}).get_tools()

agentstack/tools/stripe.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "stripe",
3+
"package": "poetry add stripe-agent-toolkit stripe",
4+
"env": "STRIPE_SECRET_KEY=sk-...",
5+
"tools_bundled": true,
6+
"tools": ["stripe_tools"],
7+
"cta": "🔑 Create your Stripe API key here: https://dashboard.stripe.com/account/apikeys"
8+
}

agentstack/tools/tools.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@
4646
"search": [{
4747
"name": "perplexity",
4848
"url": "https://perplexity.ai"
49+
}],
50+
"application-specific": [{
51+
"name": "stripe",
52+
"url": "https://github.com/stripe/agent-toolkit"
4953
}]
5054
}

0 commit comments

Comments
 (0)