Skip to content

Conversation

alexhermida
Copy link

Pull Request Template

Summary

This is a small pull request which updates the user statistics script to include agent-related data for each user.. The changes ensure that the script now counts and displays the number of agents authored by each user, and sorts users by conversations, messages, and agents.

Is useful to add this information to track agent usage.

  • Added the Agent model import from ~/db/models to enable agent-related queries.
  • Updated the statistics gathering logic to count the number of agents authored by each user and include this count in the output data.
  • Modified the sorting logic to sort users first by conversations, then by messages, and finally by agents, ensuring the most active users appear at the top of the table.

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Translation update

Testing

I haven't seen related tests to this script so I decided not to add them but let me know if you think it's relevant.

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code

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.

1 participant