Spaces:
Running
Running
File size: 364 Bytes
db70da0 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from langchain.agents import create_tool_calling_agent
from query_vectordb import chat_model
from tools import retrieve_tool, calculator_tool
from prompts import agent_prompt
def rag_agent():
llm=chat_model()
tools = [retrieve_tool(), calculator_tool()]
prompt=agent_prompt()
agent = create_tool_calling_agent(llm, tools, prompt)
return agent
|