Skip to content

Commit

Permalink
fix bugs in agent selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Aug 16, 2024
1 parent 0ca85a7 commit c390ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/ceylon/ceylon/llm/llm_task_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def get_best_agent_for_subtask(self, subtask: SubTask) -> str:
runnable = prompt_template | self.llm | StrOutputParser()

def get_valid_agent_name(max_attempts=3):
agent_names = [agent.details().name for agent in self.agents]
agent_names = [agent.details().name for agent in self.get_llm_operators]

for attempt in range(max_attempts):
response = runnable.invoke({
Expand Down

0 comments on commit c390ffc

Please sign in to comment.