Skip to main content

Module completion

Module completion 

Source

Functions§

check_completion_candidate
Checks if the agent’s response is a candidate for completion handling.
check_for_response_loop
Check for repetitive text in assistant responses to catch non-tool-calling loops. Returns true if a loop is detected.