Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Test-driven autonomous bug fixing
Run
from praisonai import Agent, ExecutionConfig def run_unit_test() -> str: """Run pytest on the target module.""" return '1 passed in 0.04s' fixer = Agent( name='TDDFixer', instructions='Always call run_unit_test and report whether the suite is green in one sentence.', tools=[run_unit_test], execution=ExecutionConfig(max_iter=5, context_compaction=True), output='silent', ) print(fixer.start('Verify the cart discount fix.'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University