Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -7,7 +7,7 @@ from langchain_core.messages import SystemMessage, HumanMessage
|
|
| 7 |
from tools import *
|
| 8 |
from typing import TypedDict
|
| 9 |
|
| 10 |
-
tools = [add, multiply, divide, subtract,
|
| 11 |
|
| 12 |
def build_agent():
|
| 13 |
llm = ChatGroq(model="qwen-qwq-32b", temperature=0)
|
|
@@ -28,7 +28,6 @@ def build_agent():
|
|
| 28 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
| 29 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 30 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
| 31 |
-
Use the tool that is most appropiate on the task you are required to do. Whenever necessary, look for updated information through searches in the web, Wikipedia, Arxiv, etc.
|
| 32 |
"""
|
| 33 |
return {
|
| 34 |
"messages": [sys_msg] + state["messages"]
|
|
|
|
| 7 |
from tools import *
|
| 8 |
from typing import TypedDict
|
| 9 |
|
| 10 |
+
tools = [add, multiply, divide, subtract, get_studio_album_count]
|
| 11 |
|
| 12 |
def build_agent():
|
| 13 |
llm = ChatGroq(model="qwen-qwq-32b", temperature=0)
|
|
|
|
| 28 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
| 29 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 30 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
|
|
|
| 31 |
"""
|
| 32 |
return {
|
| 33 |
"messages": [sys_msg] + state["messages"]
|