Iterative Refinement and Trulens-Eval Integration

implementationChallenge

Prompt Content

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.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations