feat/agentic-commerce-x402-local-sim
py 36 lines 997 Bytes
Raw
1 """Local-only x402 agentic commerce simulation for Omnipay / ProcureNet docs.
2
3 Adapted from the OpenAI Cookbook example
4 ``controlled_agentic_commerce_with_agentcore_payments``. This package never
5 moves real funds, never calls AWS/AgentCore, and uses only synthetic proofs.
6 """
7
8 from .agent import SupplierResearchOutput, run_supplier_research
9 from .application import CommerceApplication
10 from .aws_stub import live_agentcore_status
11 from .merchant import SyntheticMerchant
12 from .models import (
13 ApprovalGrant,
14 CommercePolicy,
15 PurchaseRequest,
16 PurchaseResult,
17 )
18 from .payments import LocalPaymentProcessor
19 from .policy import PolicyEngine
20
21 VALUE_TRANSFERRED = False
22
23 __all__ = [
24 "ApprovalGrant",
25 "CommerceApplication",
26 "CommercePolicy",
27 "LocalPaymentProcessor",
28 "PolicyEngine",
29 "PurchaseRequest",
30 "PurchaseResult",
31 "SupplierResearchOutput",
32 "SyntheticMerchant",
33 "VALUE_TRANSFERRED",
34 "live_agentcore_status",
35 "run_supplier_research",
36 ]