Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from langchain_core.runnables import Runnable
|
|
10 |
from langchain_core.agents import AgentFinish
|
11 |
from langchain.agents import create_react_agent
|
12 |
from langchain.agents.agent import RunnableAgent
|
13 |
-
from langchain.
|
14 |
from langchain_core.messages import HumanMessage
|
15 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
16 |
|
@@ -19,7 +19,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
19 |
# --- Constants ---
|
20 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
21 |
|
22 |
-
|
23 |
|
24 |
|
25 |
# --- Basic Agent Definition ---
|
|
|
10 |
from langchain_core.agents import AgentFinish
|
11 |
from langchain.agents import create_react_agent
|
12 |
from langchain.agents.agent import RunnableAgent
|
13 |
+
from langchain.tools import Tool
|
14 |
from langchain_core.messages import HumanMessage
|
15 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
16 |
|
|
|
19 |
# --- Constants ---
|
20 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
21 |
|
22 |
+
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
23 |
|
24 |
|
25 |
# --- Basic Agent Definition ---
|