Spaces:
Runtime error
Runtime error
File size: 520 Bytes
9fced79 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from smolagents import ToolCallingAgent
from utils import *
from basic_tools import *
from smolagents.tools import Tool
langchain_tools = [multiply,
multiply, add, subtract, divide, modulus,
wiki_search, web_search, arxiv_search,
python_repl, analyze_image,
date_filter, analyze_content,
step_by_step_reasoning, translate_text
]
tools = [Tool.from_langchain(tool) for tool in langchain_tools]
agent = ToolCallingAgent(
model = get_llm(),
tools = tools,)
|