Skip to content

Conversation

@thegovind
Copy link
Collaborator

Enhances workflow logic to ensure proper completion and termination.

  • Modifies the coordinator prompt to guide it in providing a final summary without tool invocation to signal completion.
  • Updates the console logic to handle scenarios where the workflow terminates without yielding output.
  • Adjusts the default termination condition to prevent infinite loops.

Enhances the workflow to ensure it terminates correctly even when the termination condition is met without explicitly yielding a final output. It achieves this by extracting the final coordinator message as a summary in such cases.

Also, clarifies the coordinator's role in providing the final summary and simplifies agent prompts by removing the explicit handoff instruction, as the coordinator now handles the final steps automatically.

Finally, reduces the default number of user messages allowed before termination to prevent infinite loops during testing.
@thegovind thegovind requested a review from lavaman131 November 5, 2025 04:28
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

Successfully merging this pull request may close these issues.

2 participants