Spaces:
Sleeping
Sleeping
adicionei_grafico
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from smolagents import CodeAgent, HfApiModel
|
|
| 3 |
from tools.final_answer import FinalAnswerTool
|
| 4 |
from Gradio_UI import GradioUI
|
| 5 |
import os
|
|
|
|
| 6 |
|
| 7 |
from openinference.instrumentation.smolagents import SmolAgentsInstrumentor
|
| 8 |
from langfuse import Langfuse
|
|
@@ -41,8 +42,8 @@ with open("prompts.yaml", 'r', encoding='utf-8') as stream:
|
|
| 41 |
# O agente usará nosso modelo e nosso prompt, com a única ferramenta de resposta final.
|
| 42 |
agent = CodeAgent(
|
| 43 |
model=model,
|
| 44 |
-
tools=[final_answer],
|
| 45 |
-
max_steps=
|
| 46 |
verbosity_level=1,
|
| 47 |
prompt_templates=prompt_templates
|
| 48 |
)
|
|
|
|
| 3 |
from tools.final_answer import FinalAnswerTool
|
| 4 |
from Gradio_UI import GradioUI
|
| 5 |
import os
|
| 6 |
+
from tools.graph_plotter_tool import plot_function_graph
|
| 7 |
|
| 8 |
from openinference.instrumentation.smolagents import SmolAgentsInstrumentor
|
| 9 |
from langfuse import Langfuse
|
|
|
|
| 42 |
# O agente usará nosso modelo e nosso prompt, com a única ferramenta de resposta final.
|
| 43 |
agent = CodeAgent(
|
| 44 |
model=model,
|
| 45 |
+
tools=[final_answer,plot_function_graph],
|
| 46 |
+
max_steps=4,
|
| 47 |
verbosity_level=1,
|
| 48 |
prompt_templates=prompt_templates
|
| 49 |
)
|