Skip to content

Conversation

@fenilfaldu
Copy link
Contributor

📥 Pull Request

closes #956

📘 Description
This PR tracks tool usage within agent operations and supports cost tracking. It works with all function types: synchronous, asynchronous, generator, and async generator.

🧪 Testing
Tested with this script

Screenshot 2025-05-27 at 8 05 45 PM

@codecov
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentops/sdk/decorators/factory.py 84.61% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@fenilfaldu fenilfaldu requested review from bboynton97 and tcdent May 27, 2025 15:15
Copy link
Member

@Dwij1704 Dwij1704 left a comment

Choose a reason for hiding this comment

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

@fenilfaldu Killing it with QOL tickets!!

@Dwij1704 Dwij1704 merged commit 9622b06 into main May 27, 2025
10 checks passed
@Dwij1704 Dwij1704 deleted the tool-decorator-enhance branch May 27, 2025 20:47
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.

[Feature]: Add the ability to price tool calls

3 participants