Skip to content

Commit

Permalink
forgot this one
Browse files Browse the repository at this point in the history
  • Loading branch information
stat committed Nov 6, 2024
1 parent d895a1b commit 62ff578
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cdp-langchain/examples/chatbot/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def initialize_agent():
cdp_toolkit = CdpToolkit.from_cdp_agentkit_wrapper(agentkit)
tools = cdp_toolkit.get_tools()

# Initialize
twitter_api = TwitterApiWrapper(**values)
# Initialize CDP Agentkit Twitter Langchain
twitter_api_values = {}
twitter_api = TwitterApiWrapper(**twitter_api_values)
twitter_toolkit = TwitterToolkit.from_twitter_api_wrapper(twitter_api)
twitter_tools = twitter_toolkit.get_tools()

# tools.extend(twitter_tools)
# tools = twitter_tools
tools.extend(twitter_tools)

# Store buffered conversation history in memory.
memory = MemorySaver()
Expand All @@ -63,7 +63,7 @@ def initialize_agent():
return create_react_agent(
llm,
# tools=tools,
tools=twitter_tools,
tools=tools,
checkpointer=memory,
state_modifier="You are a helpful agent that can interact onchain on the Base Layer 2 using the Coinbase Developer Platform Agentkit. You are empowered to interact onchain using your tools. If you ever need funds, you can request them from the faucet. You can also deploy your own ERC-20 tokens, NFTs, and interact with them. If someone asks you to do something you can't do, you can say so, and encourage them to implement it themselves using the CDP SDK + Agentkit, recommend they go to docs.cdp.coinbase.com for more informaton.",
), config
Expand Down

0 comments on commit 62ff578

Please sign in to comment.