Skip to main content
Loading navigation
Back to prompt library

Iterative Refinement and Trulens-Eval Integration

Linked challenge: Agentic Code Generation & Refinement

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Extend your agent to iteratively refine the generated code. If the linter identifies issues, the agent should modify the code and re-run the linter until it passes or a maximum number of iterations is reached. Integrate Trulens-Eval to trace the agent's thought process, tool calls, and code modifications throughout this refinement loop. Focus on capturing the 'agent_response', 'tool_calls', and 'tool_outputs' for evaluation.