-
Notifications
You must be signed in to change notification settings - Fork 409
Feature: Add comprehensive reasoning trace tracking and reporting system with batch and interactive agent #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
d8995c6 to
17f1bd7
Compare
|
this is a great feature! i am wondering if it is possible to simply add a parameter in the A1 agent that says "trace_tracking = True" and it will geenerate it? this way, future development on A1 does not need to migrate to A1withTraces as well. |
… with interactive agent - Add A1WithTrace agent with integrated trace tracking capabilities - Implement ReasoningTraceReporter for detailed HTML report generation - Add interactive agent mode for real-time command-line query processing - Add reasoning trace demo with example queries - Add performance metrics and timing tracking - Add terminal output capture and complete logging - Add plot management and visualization organization - Update dependencies (jinja2, pandas) for HTML generation - Maintain backward compatibility with existing functionality The system enables detailed tracking and reporting of AI reasoning processes with interactive HTML reports, comprehensive performance monitoring, and real-time interactive query processing from command line for debugging and analysis purposes.
- Remove A1WithTrace class and integrate trace tracking directly into A1 agent. - Update initialization parameters to include trace tracking options. - Modify demo scripts to utilize the updated A1 agent with trace tracking. - Ensure backward compatibility with existing functionality while enhancing trace reporting capabilities.
17f1bd7 to
a95506a
Compare
for more information, see https://pre-commit.ci
Thanks, that makes sense. My initial thought was to keep |
|
@kexinhuang12345 just a quick follow-up, I’ve incorporated the earlier feedback and updated this PR so that reasoning trace tracking is integrated directly into I also noticed the new PR #217 for downloading conversation history in PDF. To avoid any conflicts, I wanted to check if there’s anything I should adjust, or if I can help align the two. |
|
ok @amehrjou i think you should merge first your changes (@kexinhuang12345), then ill fix mine code to work with your (i.e. ill add your thinking trace to PDF generation) and then we will merge mine. Also happy to help at any stage:) |
|
Great - sounds like a plan! thanks Igor and Arash! |
|
Thanks @igor-sadalski! I noticed #217 was merged ahead of this. @serena2z could you let me know if any updates are needed here? |
This PR introduces a reasoning trace tracking and reporting system to Biomni, enabling detailed capture and visualization of agent reasoning processes. It enhances debugging, monitoring, and reporting for biomni's reasoning workflows while maintaining full backward compatibility.
✨ New Features
Enhanced Agent with Trace Tracking
Interactive Agent Capability & Features
python tutorials/reasoning_trace_demo.py --interactivepython tutorials/reasoning_trace_demo.py(default)quit/exitcommandsComprehensive Reporting System
Interactive Demo System
🔧 Technical Implementation
Core Components
biomni/agent/a1_with_trace.py: Enhanced agent with trace trackingbiomni/evaluation/reasoning_trace_reporter.py: Trace reporter and HTML generatorbiomni/evaluation/__init__.py: Evaluation module initializationtutorials/reasoning_trace_demo.py: Demonstration script with example queriesDependencies
jinja2for HTML template renderingpandasfor analysis and exportpyproject.tomlHTML Report Generation
Export & Analysis
💡 Use Cases
📎 Example Report
An example reasoning trace report is attached to this PR for easier review and to illustrate the system’s output and layout.
example_report.pdf