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

Set agent name in constructor #322

Merged
merged 8 commits into from
Jul 31, 2024
Merged

Set agent name in constructor #322

merged 8 commits into from
Jul 31, 2024

Conversation

bboynton97
Copy link
Contributor

When using the @track_agent decorator, you can dynamically set the name of an agent in runtime by passing agentops_name as a keyword argument into the agent class' constructor.

@bboynton97 bboynton97 requested review from siyangqiu and HowieG July 29, 2024 23:15
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
unittests 46.29% <100.00%> (+1.37%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
agentops/decorators.py 68.26% <100.00%> (+14.26%) ⬆️

... and 1 file with indirect coverage changes

@bboynton97 bboynton97 merged commit 60ae045 into main Jul 31, 2024
12 checks passed
@bboynton97 bboynton97 deleted the set-agent-name branch July 31, 2024 20:31
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.

2 participants