Skip to content

Strands Agents framework Extension - #798

Merged
CarsonRoscoe merged 5 commits into
coinbase:mainfrom
ucegbe:main
Jul 25, 2025
Merged

CarsonRoscoe merged 5 commits into
coinbase:mainfrom
ucegbe:main

Conversation

@ucegbe

@ucegbe ucegbe commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

Description


Changes:

  • Added coinbase-agentkit-strands-agents package in python/framework-extensions/strands-agents/
  • Provides get_strands_tools() function to convert AgentKit actions into Strands-Agents-compatible tools
  • Added example chatbot demonstrating the integration in python/examples/strands-agents-cdp-server-chatbot/
  • Includes automatic type hint inference from AgentKit action schemas
  • Follows established patterns from other framework extensions (langchain, openai-agents-sdk)

This enables developers using Strands Agents to leverage all existing AgentKit CDP actions (wallet operations, token transfers, trading, etc.) with minimal setup.

Tests


Chatbot: python/examples/strands-agents-cdp-server-chatbot/chatbot.py
Network: Base Sepolia
Setup: Configured with CDP API credentials

Prompt: request tokens from faucet

<thinking>The user wants to request tokens from the faucet. 

First, I need to determine which network the wallet is connected to. The faucet is only available on base-sepolia, ethereum-sepolia, and solana-devnet networks. If the wallet is on one of these networks, I can proceed with the faucet request. If not, I'll need to inform the user and suggest alternative funding methods.

According to the policy:
- Must check wallet network before any faucet operations
- Faucet only allowed on specified testnets
- Need to verify network ID via wallet details

Next step: Get wallet details to check current network ID and confirm eligibility for faucet usage.</thinking>


Tool #1: WalletActionProvider_get_wallet_details
<thinking>The wallet is connected to the base-sepolia network, which is eligible for faucet requests. The user hasn't specified an asset, so I'll default to ETH per faucet policy. Next step: Use the faucet tool to request ETH tokens since base-sepolia allows ETH faucets.</thinking> 
Tool #2: CdpApiActionProvider_request_faucet_funds
<thinking>The faucet transaction was successful. The user received ETH tokens on base-sepolia with transaction hash provided. Now I need to inform the user about the completed action and provide the transaction details as confirmation.</thinking> Testnet ETH tokens received via faucet. Transaction hash: 0x2004cc22080b977ba86a966fa23211245exxxxxxxxx<thinking>The faucet transaction was successful. The user received ETH tokens on base-sepolia with transaction hash provided. Now I need to inform the user about the completed action and provide the transaction details as confirmation.</thinking> Testnet ETH tokens received via faucet. Transaction hash: 0x2004cc22080b977ba86xxxxxx

Checklist


  • Added documentation to all relevant README.md files
  • Added a changelog entry
  • Code follows the project's style guidelines
  • Self-review of code completed
  • No breaking changes introduced

@ucegbe
ucegbe requested a review from murrlincoln as a code owner July 25, 2025 05:07
@cb-heimdall

cb-heimdall commented Jul 25, 2025 •

Copy link
Copy Markdown

✅ Heimdall Review Status

Requirement Status More Info
Reviews ✅ 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions github-actions Bot added documentation Improvements or additions to documentation example New example agent framework extension New framework extension python labels Jul 25, 2025
@ucegbe

ucegbe commented Jul 25, 2025

Copy link
Copy Markdown
Contributor Author

hey guys, messed up the previous PR, so I created a new one 😄

@ucegbe

ucegbe commented Jul 25, 2025

Copy link
Copy Markdown
Contributor Author

Resigning my previous commit messed things up and I had to discard all commits 🤦‍♂️ which automatically closed my PR #757

@CarsonRoscoe CarsonRoscoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution!

@cb-heimdall

Copy link
Copy Markdown

Review Error for CarsonRoscoe @ 2025-07-25 13:05:03 UTC
User failed mfa authentication, see go/mfa-help

@CarsonRoscoe
CarsonRoscoe merged commit aea7eae into coinbase:main Jul 25, 2025
@ucegbe

ucegbe commented Jul 25, 2025

Copy link
Copy Markdown
Contributor Author

Thanks guys, looking forward to more of this

@phdargen phdargen mentioned this pull request Aug 4, 2025
2 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation example New example agent framework extension New framework extension python

Development

Successfully merging this pull request may close these issues.

3 participants