ConversableAgent
whereby the agent is the human in the loop, controlled through the human_input_mode
parameter:
human_input_mode
parameter has three possible values:
ALWAYS
: The agent uses the human input as its responseTERMINATE
: The agent asks for input only when terminating a conversationNEVER
: The agent never asks for human inputConversableAgent
from the previous section with two critical improvements:
human_input_mode="ALWAYS"
creates a checkpoint where a human must provide input before the workflow can continue - essential for regulatory compliance.financial_compliance.py
)pip install ag2[openai]
python financial_compliance.py