Skip to main content

Coinbase AgentKit Strands Agents extension

Project description

AgentKit Strands Agents Extension

Strands Agents extension of AgentKit. Enables agentic workflows to interact with onchain actions.

Setup

Prerequisites

Installation

pip install coinbase-agentkit coinbase-agentkit-strands-agents

Environment Setup

Set the following environment variables:

export CDP_API_KEY_ID=<your-cdp-api-key-id>
export CDP_API_KEY_SECRET=<your-cdp-api-key-secret>
export CDP_WALLET_SECRET=<your-cdp-wallet-secret>
export AWS_ACCESS_KEY_ID=<your-aws-access-key-id>
export AWS_SECRET_ACCESS_KEY=<your-aws-secret-access-key>
export AWS_REGION=<your-aws-region>

Note: If using Bedrock API keys instead of AWS credentials, set AWS_BEARER_TOKEN_BEDROCK instead of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variable for Bedrock model access. Also make sure the AWS_REGION aligns with the AWS region the Bedrock access key was created in.

Usage

Basic Setup

from coinbase_agentkit import AgentKit
from coinbase_agentkit_strands_agents import get_strands_tools
from strands.models import BedrockModel
from strands import Agent

agentKit = AgentKit()

tools = get_strands_tools(agentKit)

llm = BedrockModel(
    model_id="us.amazon.nova-pro-v1:0",
    region_name='us-east-1' ## set to the appropiate region with model access
)

agent = Agent(
    model=llm,
    tools=tools,
)

For AgentKit configuration options, see the Coinbase Agentkit README.

For Strands Agents configuration options, see the Strands Agents Documentation.

For a full example, see the chatbot example.

Contributing

See CONTRIBUTING.md for detailed setup instructions and contribution guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinbase_agentkit_strands_agents-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file coinbase_agentkit_strands_agents-0.2.0.tar.gz.

File metadata

File hashes

Hashes for coinbase_agentkit_strands_agents-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cce318a375bcb82c9369b4ec54803cd9aad5f1878801f5a1c5d266bbd271221f
MD5 957016895514bd9cd9fbfd1e37ec6473
BLAKE2b-256 5f2eea430553e346e54192a6bca1e73ff6189dad2b2e0b3356e5165887783990

See more details on using hashes here.

Provenance

The following attestation bundles were made for coinbase_agentkit_strands_agents-0.2.0.tar.gz:

Publisher: publish_pypi_coinbase_agentkit_strands_agents.yml on coinbase/agentkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 458208d2df6d86506af409f48449f9333b955fb5cf2472bf571b8bc1c92a8094
MD5 c40bae54a208e8bb7abb30ec391ccaf7
BLAKE2b-256 b456858aede566b036792541316a575aa60443b1b1100c1d8324170510701591

See more details on using hashes here.

Provenance

The following attestation bundles were made for coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl:

Publisher: publish_pypi_coinbase_agentkit_strands_agents.yml on coinbase/agentkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page