Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple LLMs will not trigger multiple agent execution calls and infinitely loop #142

Closed
Nolanjue opened this issue Jul 22, 2024 · 1 comment

Comments

@Nolanjue
Copy link

I'm not sure if this is stated in the docs, but currently running one agent with a specific model that has a tool which calls another agent(with a different model) will fail to do so and ends up in an infinite loop.

Also, does crewai Verbose thoughts and actions limited to the complexity of the model? certain models like phi3 are not able to even use tools(tested in LM studios).

ex: (i have not included the text inside each text bracket)

"agent using the function"


def new_task(agent):
		return Task(description=f"""
			""",
			agent=agent, 
            expected_output=""". """)



agent= Agent(role="",
			goal="""
				 """,
			backstory="""
				 """,
			tools=[Specific.choose_specific_action,],
			llm=ollama_llm,
			verbose = True,
            
)
upper_management = Crew(agents = [agent], tasks=[new_task(agent)],)


workflow = upper_management.kickoff()


print("final answer", workflow)


"agent inside the function(using openai LLM)"

class Specific():
    @tool("choose agent to generate a response")
    def choose_specific_action(query: str):
         """ """
         specific_agent = Agent(
          role='info agent',
          goal=
          """ """,
          backstory=
          """
            """,
        
          allow_delegation=False,
          tools = [RAGsearch],
         #llm = stable_code_llm,
         verbose = True,
          )

         task = Task(
               agent=easy_agent,
               description=
               f""" """,
               expected_output =""
            )
         summary = task.execute()
         print("agent response",summary)
         return summary

Is there a reason for these issues? Would be glad if anyone knew more, and is there a discord for crew ai :3?

@Nolanjue Nolanjue closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
@Nolanjue
Copy link
Author

wrong repo, meant to post this in the crewaiinc. apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant