Spaces:
Running
Running
Update agent_langchain.py
Browse files- agent_langchain.py +3 -2
agent_langchain.py
CHANGED
@@ -4,9 +4,10 @@ from datetime import date
|
|
4 |
from langchain.agents import AgentType, initialize_agent, load_tools, tool
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
|
7 |
-
LANGCHAIN_TRACING_V2 = True
|
8 |
-
LANGCHAIN_ENDPOINT = "https://api.smith.langchain.com"
|
9 |
LANGCHAIN_API_KEY = os.environ["LANGSMITH_API_KEY"]
|
|
|
|
|
|
|
10 |
|
11 |
@tool
|
12 |
def today_tool(text: str) -> str:
|
|
|
4 |
from langchain.agents import AgentType, initialize_agent, load_tools, tool
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
|
|
|
|
|
7 |
LANGCHAIN_API_KEY = os.environ["LANGSMITH_API_KEY"]
|
8 |
+
LANGCHAIN_ENDPOINT = "https://api.smith.langchain.com"
|
9 |
+
LANGCHAIN_PROJECT = "openai-llm-agent"
|
10 |
+
LANGCHAIN_TRACING_V2 = True
|
11 |
|
12 |
@tool
|
13 |
def today_tool(text: str) -> str:
|