Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,4 @@ See: [AgentCore payments observability data](https://docs.aws.amazon.com/bedrock
- [MPP credential spec](https://mpp.dev/protocol/credentials)
- [Payment HTTP Authentication spec](https://paymentauth.org/draft-httpauth-payment-00.html)
- [AgentCore Payments pricing](https://aws.amazon.com/bedrock/agentcore/pricing/)

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Usage: python strands_mpp_agent_mainnet.py
"""


import os
import sys
import uuid as _uuid
Expand All @@ -22,8 +21,6 @@
load_dotenv(ENV_FILE, override=True)




# -- Verify credentials ------------------------------------------------------
identity = boto3.Session().client("sts").get_caller_identity()
print(f"Authenticated as: {identity['Arn']}")
Expand All @@ -36,7 +33,7 @@

print(f" Manager: {PAYMENT_MANAGER_ARN}")
print(f" Instrument: {INSTRUMENT_ID}")
print(f" Network: Tempo MAINNET (chain 4217)\n")
print(" Network: Tempo MAINNET (chain 4217)\n")

# -- Opt-in ------------------------------------------------------------------
print("=" * 60)
Expand Down Expand Up @@ -98,18 +95,18 @@
)



# -- Run ---------------------------------------------------------------------
print("\n" + "=" * 60)
print("COMPETITIVE INTELLIGENCE (mainnet, real funds)")
print("=" * 60)
target = input("\nResearch target (company/product): ").strip() or "Amazon Bedrock AgentCore"
target = input("\nResearch target (company/product): ").strip() or "cloud computing market trends"

print(f"\nResearching: {target}\n")

result = agent(
f"Research '{target}' using Browserbase. Make 2-3 searches from different angles "
f"(competitors, news, features). Synthesize a competitive intelligence briefing. "
f"Report total cost."
"(competitors, news, features). Synthesize a competitive intelligence briefing. "
"Report total cost."
)

if getattr(result, "stop_reason", None) == "interrupt" or getattr(result, "interrupts", None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Usage: python strands_mpp_agent_testnet.py
"""


import os
import sys
import uuid as _uuid
Expand All @@ -20,8 +19,6 @@
load_dotenv(ENV_FILE, override=True)




# -- Verify credentials ------------------------------------------------------
identity = boto3.Session().client("sts").get_caller_identity()
print(f"Authenticated as: {identity['Arn']}")
Expand All @@ -34,7 +31,7 @@

print(f" Manager: {PAYMENT_MANAGER_ARN}")
print(f" Instrument: {INSTRUMENT_ID}")
print(f" Network: Tempo Moderato testnet (chain 42431)\n")
print(" Network: Tempo Moderato testnet (chain 42431)\n")

# -- Payment session + plugin ------------------------------------------------
from bedrock_agentcore.payments import PaymentManager
Expand Down Expand Up @@ -82,7 +79,6 @@
)



# -- Run ---------------------------------------------------------------------
print("\n" + "=" * 60)
print("TESTNET -- mpp.dev/api/ping/paid (chain 42431, free)")
Expand All @@ -94,7 +90,8 @@
)

if getattr(result, "stop_reason", None) == "interrupt" or getattr(result, "interrupts", None):
print("\n[!] Payment did not settle. Check: Stripe/Privy instrument, funded wallet, delegated signing.")
print("\n[!] Payment did not settle.")
print(" Check: Stripe/Privy instrument, funded wallet, delegated signing.")
sys.exit(1)

print("\nDone. See Module B (strands_mpp_agent_mainnet.py) for a mainnet use case.")
Loading