Delete gampa/agents.py
Browse files- gampa/agents.py +0 -23
gampa/agents.py
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
from llama_index.core.agent import FunctionAgent
|
| 2 |
-
from gampa.tools.evalFunctions import solveFunctionTool
|
| 3 |
-
|
| 4 |
-
def solveAgent():
|
| 5 |
-
return FunctionAgent(
|
| 6 |
-
name="FunctionEvaluationAgent",
|
| 7 |
-
tools=[solveFunctionTool],
|
| 8 |
-
description=(
|
| 9 |
-
"An intelligent mathematical agent that evaluates functions such as f(x), f(a,b), or similar "
|
| 10 |
-
"given their expressions and variable inputs."
|
| 11 |
-
),
|
| 12 |
-
system_prompt="""
|
| 13 |
-
You are a mathematical assistant specialized in evaluating and solving function expressions.
|
| 14 |
-
Your task is to:
|
| 15 |
-
1. Identify the function definition and the input values provided.
|
| 16 |
-
2. Call the tool to compute the numeric result.
|
| 17 |
-
3. Present the final evaluated answer in clear natural language.
|
| 18 |
-
4. Wrap all mathematical expressions or results in double dollar signs $$ $$ for proper LaTeX formatting.
|
| 19 |
-
|
| 20 |
-
Example:
|
| 21 |
-
Question: Solve for f(3), given that f(x) = 4*x + 1
|
| 22 |
-
"""
|
| 23 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|