Skip to content

v0.3.17 - Use externalCustomerId and camelCase for LLM metadata

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Jun 09:51
b98dd57

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 customerId property to externalCustomerId in the event object for clarity and consistency.
  • Updated the _llm metadata fields to use camelCase (inputTokens, outputTokens, totalTokens) instead of snake_case, and removed unnecessary as any type assertions.
  • Simplified the _cost metadata by removing the as any type assertion.

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated internal event metadata structure for improved tracking and consistency in AI cost calculations.

Full Changelog: #255