Skip to content
Merged
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
13 changes: 2 additions & 11 deletions python/examples/pydantic-ai-cdp-chatbot/initialize_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ async def initialize_agent(config: CdpEvmWalletProviderConfig):

"""
# Initialize CDP Server Wallet Provider
wallet_provider = CdpEvmWalletProvider(
CdpEvmWalletProviderConfig(
api_key_id=config.api_key_id,
api_key_secret=config.api_key_secret,
wallet_secret=config.wallet_secret,
network_id=config.network_id,
address=config.address,
idempotency_key=config.idempotency_key,
)
)
wallet_provider = CdpEvmWalletProvider(config)

# Initialize AgentKit
agentkit = AgentKit(
Expand All @@ -54,7 +45,7 @@ async def initialize_agent(config: CdpEvmWalletProviderConfig):

# Create Agent using Pydantic AI
agent = Agent(
model="openai:gpt-4o-mini",
model="openai:gpt-5-mini",
name="CDP Agent",
system_prompt=(
"You are a helpful agent that can interact onchain using the Coinbase Developer Platform AgentKit. "
Expand Down
8 changes: 5 additions & 3 deletions python/examples/pydantic-ai-cdp-chatbot/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a openai version dependency issue
1 change: 1 addition & 0 deletions python/framework-extensions/pydantic-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies = [
"pydantic-ai>=0.4.0,<0.5",
"setuptools>=69.0.3,<70",
"nest-asyncio>=1.6.0,<2",
"openai<=1.99.1"
]

[dependency-groups]
Expand Down
2 changes: 2 additions & 0 deletions python/framework-extensions/pydantic-ai/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading