Skip to content
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

Feature: Managing Agent Usage counter from backend #293

Merged
merged 14 commits into from
Jan 20, 2025

Conversation

alashchev17
Copy link
Collaborator

@alashchev17 alashchev17 commented Jan 15, 2025

Feature: Managing Agent Usage counter from backend

Description

Type of change

  • 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)
  • Refactoring (no functional changes, only code improvements)
  • Documentation update

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.
  • I have updated the documentation where necessary.

…g counter in state.chat & resetting prevent_send on restored chat from cache
@alashchev17 alashchev17 changed the base branch from main to alpha January 15, 2025 13:08
@alashchev17 alashchev17 self-assigned this Jan 15, 2025
@reymondzzzz reymondzzzz force-pushed the feat/managing-agent-usage-counter-on-backend branch from 6014942 to 4f73633 Compare January 17, 2025 06:42
MarcMcIntosh
MarcMcIntosh previously approved these changes Jan 17, 2025
@MarcMcIntosh MarcMcIntosh dismissed their stale review January 17, 2025 13:35

PR still in draft

…n application

TODO: remove unused code from useAgentUsage() hook
…nse action dispatching, storing agent usage metadata in separate slice, not in chat one, receiving data on v1/login, asserting to state
@alashchev17 alashchev17 marked this pull request as ready for review January 17, 2025 17:12
items,
agent_usage: 5,
agent_max_usage_amount: 20,
_persist: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i didn't know _persist could be added like that.

Copy link
Collaborator

@MarcMcIntosh MarcMcIntosh left a comment

Choose a reason for hiding this comment

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

LGTM :)

@alashchev17 alashchev17 merged commit 9198a99 into alpha Jan 20, 2025
2 checks passed
@alashchev17 alashchev17 deleted the feat/managing-agent-usage-counter-on-backend branch January 20, 2025 13:39
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