Skip to content

Commit

Permalink
Merge pull request #50 from AgentOps-AI/stripe-tool
Browse files Browse the repository at this point in the history
Add Stripe tooling
  • Loading branch information
bboynton97 authored Nov 15, 2024
2 parents 0d4d569 + 4ca392e commit 2ebaa93
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions agentstack/templates/crewai/tools/stripe_tool.py
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()
8 changes: 8 additions & 0 deletions agentstack/tools/stripe.json
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"
}
4 changes: 4 additions & 0 deletions agentstack/tools/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
"search": [{
"name": "perplexity",
"url": "https://perplexity.ai"
}],
"application-specific": [{
"name": "stripe",
"url": "https://github.com/stripe/agent-toolkit"
}]
}

0 comments on commit 2ebaa93

Please sign in to comment.