Sxnan opened a new pull request, #394:
URL: https://github.com/apache/flink-agents/pull/394

   Linked issue: #xxx
   
   ### Purpose of change
   
   This PR adds built-in token usage metrics for chat model connections. The 
metrics are automatically recorded when chat models are invoked, tracking 
`promptTokens` and `completionTokens` per model.
   
   ### Tests
   
   - Added `BaseChatModelConnectionTokenMetricsTest.java` for Java unit tests
   - Added `test_token_metrics.py` for Python unit tests
   
   ### API
   
   Yes, this change adds new built-in metrics
   
   ### Documentation
   
   <!-- Do not remove this section. Check the proper box only. -->
   
   - [x] `doc-needed` <!-- Your PR changes impact docs -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to