|
1
|
# Upstream source |
|
2
|
|
|
3
|
This example adapts the OpenAI Cookbook partner example: |
|
4
|
|
|
5
|
**Controlled agentic commerce with AgentCore Payments** |
|
6
|
|
|
7
|
- Upstream directory: |
|
8
|
`https://github.com/openai/openai-cookbook/tree/main/examples/partners/AWS/controlled_agentic_commerce_with_agentcore_payments` |
|
9
|
- Raw base used for module download: |
|
10
|
`https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/partners/AWS/controlled_agentic_commerce_with_agentcore_payments/` |
|
11
|
- Notebook: `controlled_agentic_commerce.ipynb` |
|
12
|
- Authors (upstream): Deepak Jain and Sid Rampally |
|
13
|
- License: OpenAI Cookbook content is generally available under the Apache |
|
14
|
License 2.0 / MIT terms applicable to that repository. Retain attribution |
|
15
|
when redistributing adapted modules. |
|
16
|
- Snapshot retrieved: 2026-09-23 (exact upstream commit SHA not pinned here; |
|
17
|
re-check the cookbook tree before relying on API shapes outside this local |
|
18
|
sim). |
|
19
|
|
|
20
|
## What was adapted |
|
21
|
|
|
22
|
| Upstream | Omnipay local sim | |
|
23
|
|---|---| |
|
24
|
| `src/agentic_commerce/*` local modules | `src/omnipay_x402/` | |
|
25
|
| OpenAI Agents SDK + scripted `Model` | Tiny scripted `run_supplier_research` (no SDK) | |
|
26
|
| AgentCore Payments / Bedrock / AWS e2e | Omitted; `aws_stub.py` returns `SKIPPED` / `NOT_READY` | |
|
27
|
| Live testnet USDC | Never enabled (`value_transferred=false`) | |
|
28
|
|
|
29
|
## Intentional omissions |
|
30
|
|
|
31
|
- `agentcore_*.py` modules (payments, session, e2e, infrastructure, runtime, agent, application, learning_model) |
|
32
|
- Live wallet connectors, private keys, mnemonics, Coinbase CDP credentials |
|
33
|
- Requirements on `openai-agents`, `openai[bedrock]`, `botocore`, `bedrock-agentcore` |