Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -13,10 +13,9 @@ def date_tool(text: str) -> str:
|
|
13 |
Any date mathematics should occur outside this function."""
|
14 |
return str(date.today())
|
15 |
|
16 |
-
def invoke_agent(model, temperature,
|
17 |
llm = ChatOpenAI(
|
18 |
model_name = model,
|
19 |
-
openai_api_key = openai_api_key,
|
20 |
temperature = temperature)
|
21 |
|
22 |
tools = load_tools(["openweathermap-api"])
|
|
|
13 |
Any date mathematics should occur outside this function."""
|
14 |
return str(date.today())
|
15 |
|
16 |
+
def invoke_agent(model, temperature, prompt):
|
17 |
llm = ChatOpenAI(
|
18 |
model_name = model,
|
|
|
19 |
temperature = temperature)
|
20 |
|
21 |
tools = load_tools(["openweathermap-api"])
|