エージェントワークフローに Stripe を追加する開発者プレビュー
エージェントで金融サービスを使用します。
Stripe を利用してエージェントビジネスを運営し、エージェントの機能を強化します。金融サービスとツールへのアクセスを提供すると、エージェントは資金の獲得と利用をサポートできるようになり、その機能を拡張できます。
Stripe オブジェクトを作成する
関数呼び出しを使用して Stripe オブジェクトを作成し、管理します。たとえば、資金を受け取るための Payment Links を動的に作成し、顧客をサポートするためのサポートワークフローに導入し、テストデータを作成します。
Stripe のエージェントツールキットは、OpenAI の Agents SDK、Vercel の AI SDK、LangChain、CrewAI をサポートしています。関数呼び出しをサポートし、Python および TypeScript と互換性のある任意の LLM プロバイダーで動作します。
開発者プレビュー
この SDK を使用して、Stripe とエージェントワークフローを連携させる方法をご紹介します。エージェントの動作は非決定論的であるため、一度サンドボックスで SDK を使用し、アプリケーションのパフォーマンスを評価します。さらに、制限付き API キーを使用して、エージェントが必要とする機能へのアクセスを制限します。
代理人使用料を請求する
Agents SDKs
従量課金を実装して、使用量を記録します。Stripe のエージェントツールキットは、OpenAI Agents SDK と Vercel AI SDK でのプロンプトと完了トークンによる請求をネイティブでサポートしています。入出力メーターイベントの Customer と event_
を使用して、LLM のコストをユーザーに直接転送できます。
Model Context Protocol servers Public preview
Model Context Protocol (MCP) is an open protocol to standardize how applications provide context to LLMs. The Stripe Agent toolkit offers wrapper functions to monetize your tool calls to MCP servers hosted on Cloudflare’s Agent SDK.
To search Stripe documentation and query your Stripe data, use the Stripe MCP server.
オンラインで商品を購入する
- Issuing: Create single-use virtual cards for your business purchases. This allows your agents to spend funds. The Issuing APIs allow you to programmatically approve or decline authorizations, ensuring your purchase intent matches the authorization. Spending controls allow you to set budgets and limit spending for your agents.
- Order Intents プライベートベータ版: Give your agents commerce capabilities through programmatic execution of purchases online. This agentic API helps facilitate variant and fulfillment selections and manage the order lifecycle. To join the private preview, fill out the form below.
次のステップ
- 詳細なコード例については、エージェントのクイックスタートをご覧ください。
- GitHub のエージェントツールキットをダウンロード
- ガイドに従って、Issuing での B2BPayment の導入を構築します