This pull request updates the event metadata structure sent in the ai.task_summary event to improve naming consistency and type safety. The changes mainly focus on renaming properties to follow camelCase conventions and removing unnecessary type assertions.
Event metadata improvements:
- Changed the
customerIdproperty toexternalCustomerIdin the event object for clarity and consistency. - Updated the
_llmmetadata fields to use camelCase (inputTokens,outputTokens,totalTokens) instead of snake_case, and removed unnecessaryas anytype assertions. - Simplified the
_costmetadata by removing theas anytype assertion.
Summary by CodeRabbit
Release Notes
- Chores
- Updated internal event metadata structure for improved tracking and consistency in AI cost calculations.
Full Changelog: #255