How to Set a Termination Condition on an AG2 Group Chat
Set a termination condition on an AG2 group chat so the conversation stops after a set number of messages or a keyword.
THE FIELD GUIDE
Build, connect, and test tool-using agents and repeatable AI workflows with practical examples.
Set a termination condition on an AG2 group chat so the conversation stops after a set number of messages or a keyword.
Register a Python function as a tool on an AG2 ConversableAgent pair so the assistant can call it and the user proxy…
Add a human input step to a CrewAI task so the crew pauses for a person's answer before continuing.
Set a CrewAI task to return structured JSON output and save it to a file so another step can read it.
Attach a knowledge source to a CrewAI agent so it answers from your documents instead of general knowledge.
Build a CrewAI Flow that runs tasks in a controlled order with state, instead of letting agents decide the order.
Add a guardrail to a CrewAI task so its output is checked against a rule and retried when it fails the check.
Add a human-in-the-loop checkpoint to a Flowise Agentflow so a person approves a step before the agent continues.
Build a Flowise Agentflow with sequential agents so a task passes through a fixed order of specialist agents.
Ingest PDF documents into a Flowise document store so a chatflow can answer from them.