Skip to content

Conversation

@juanmichelini
Copy link
Collaborator

  • Add calculate_line_duration() function to compute duration from oldest to newest timestamp per line
  • Add calculate_time_statistics() function to compute average, max, min, and mean durations per file
  • Integrate time statistics into main report generation for both output.jsonl and critic files
  • Display time statistics in console output and save to JSON report

- Add calculate_line_duration() function to compute duration from oldest to newest timestamp per line
- Add calculate_time_statistics() function to compute average, max, min, and mean durations per file
- Integrate time statistics into main report generation for both output.jsonl and critic files
- Display time statistics in console output and save to JSON report

Co-authored-by: openhands <[email protected]>
@openhands-ai
Copy link

openhands-ai bot commented Dec 8, 2025

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • .github/workflows/build-gaia-image.yml

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #138 at branch `jmj/report-time-duration`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings



def calculate_line_duration(entry: Dict) -> Optional[float]:
"""Calculate the duration for a single line (entry) in seconds."""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code references "lines".
What's a line ? Is a line a single event in the conversation? Can the docstring clarify this? Else good to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants