Spaces:
Sleeping
Sleeping
Daniel Amendoeira
commited on
Update agent.py
Browse files
agent.py
CHANGED
@@ -10,7 +10,7 @@ from typing import Literal
|
|
10 |
from langchain_community.tools import BraveSearch # web search
|
11 |
from langchain_experimental.tools.python.tool import PythonAstREPLTool # for logic/math problems
|
12 |
|
13 |
-
from tools import (datetime_tools,
|
14 |
from prompt import system_prompt
|
15 |
|
16 |
# gpt-4.1-nano (cheaper for debugging) with temperature 0 for less randomness
|
@@ -40,7 +40,7 @@ search_tool = BraveSearch.from_api_key(
|
|
40 |
)
|
41 |
|
42 |
community_tools = [search_tool, python_tool]
|
43 |
-
custom_tools = [datetime_tools,
|
44 |
|
45 |
tools = community_tools + custom_tools
|
46 |
llm_with_tools = llm.bind_tools(tools)
|
|
|
10 |
from langchain_community.tools import BraveSearch # web search
|
11 |
from langchain_experimental.tools.python.tool import PythonAstREPLTool # for logic/math problems
|
12 |
|
13 |
+
from tools import (datetime_tools, transcribe_audio)
|
14 |
from prompt import system_prompt
|
15 |
|
16 |
# gpt-4.1-nano (cheaper for debugging) with temperature 0 for less randomness
|
|
|
40 |
)
|
41 |
|
42 |
community_tools = [search_tool, python_tool]
|
43 |
+
custom_tools = [datetime_tools, transcribe_audio]
|
44 |
|
45 |
tools = community_tools + custom_tools
|
46 |
llm_with_tools = llm.bind_tools(tools)
|