mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 06:39:52 +00:00
Remove unused imports
This commit is contained in:
parent
cfd413f51e
commit
58c2f34c35
@ -146,9 +146,6 @@
|
|||||||
"# Load environment variables\n",
|
"# Load environment variables\n",
|
||||||
"load_dotenv()\n",
|
"load_dotenv()\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from langchain_openai import ChatOpenAI\n",
|
|
||||||
"from langchain.agents import AgentExecutor, create_tool_calling_agent\n",
|
|
||||||
"from langchain_core.prompts import ChatPromptTemplate\n",
|
|
||||||
"from solana.rpc.api import Client as SolanaClient\n",
|
"from solana.rpc.api import Client as SolanaClient\n",
|
||||||
"from solders.keypair import Keypair\n",
|
"from solders.keypair import Keypair\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -168,17 +165,6 @@
|
|||||||
"llm = ChatOpenAI(model=\"gpt-4o-mini\")\n",
|
"llm = ChatOpenAI(model=\"gpt-4o-mini\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def main():\n",
|
"def main():\n",
|
||||||
" \n",
|
|
||||||
" # Get the prompt template\n",
|
|
||||||
" prompt = ChatPromptTemplate.from_messages(\n",
|
|
||||||
" [\n",
|
|
||||||
" (\"system\", \"You are a helpful assistant\"),\n",
|
|
||||||
" (\"placeholder\", \"{chat_history}\"),\n",
|
|
||||||
" (\"human\", \"{input}\"),\n",
|
|
||||||
" (\"placeholder\", \"{agent_scratchpad}\"),\n",
|
|
||||||
" ]\n",
|
|
||||||
" )\n",
|
|
||||||
"\n",
|
|
||||||
" # Initialize tools with Solana wallet\n",
|
" # Initialize tools with Solana wallet\n",
|
||||||
" tools = get_on_chain_tools(\n",
|
" tools = get_on_chain_tools(\n",
|
||||||
" wallet=wallet,\n",
|
" wallet=wallet,\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user