Skip to content

Commit

Permalink
replace ReActLlamaIndexMotleyAgent to ReActMotleyAgent in math_crewai
Browse files Browse the repository at this point in the history
  • Loading branch information
User committed Jul 8, 2024
1 parent 618c370 commit e736b87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/old/math_crewai.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dotenv import load_dotenv

from motleycrew import MotleyCrew
from motleycrew.agents.llama_index import ReActLlamaIndexMotleyAgent
from motleycrew.agents.langchain import ReActMotleyAgent
from motleycrew.tools import PythonREPLTool
from motleycrew.common import configure_logging

Expand All @@ -11,14 +11,14 @@ def main():
repl_tool = PythonREPLTool()

# Define your agents with roles and goals
solver1 = ReActLlamaIndexMotleyAgent(
solver1 = ReActMotleyAgent(
name="High School Math Teacher",
prompt_prefix="""You are a high school math teacher with a passion for problem-solving.
prompt_prefix="Generate great solutions to math problems",
description="""You are a high school math teacher with a passion for problem-solving.
To solve a math problem, you first reason about it, step by step, then generate the code to solve it exactly,
using sympy, then use the REPL tool to evaluate that code, and then
use the output to generate a human-readable solution.""",
verbose=True,
description="Generate great solutions to math problems",
tools=[repl_tool],
)

Expand Down

0 comments on commit e736b87

Please sign in to comment.