What's Changed
1. **fix**: Corrected total_cost and total_token calculation in custom agentic traces
- Previously, these values were being incorrectly calculated or displayed.
- Now, the logic ensures accurate display of total cost and token usage.
2. **feat**: Associate model with response and add model_name metadata
- Associated the LLM model used with its corresponding response to align with backend changes and provide a more complete data structure.
- Introduced a new metadata field, model_name, specifically for analysis purposes. This will allow for easier tracking and reporting of model usage.
3. **fix**: Graceful handling of missing LLM response data
- Improved error handling to prevent crashes when model cost, token, or latency cannot be identified from the LLM response.
- The system now gracefully handles cases where any of these values are missing, ensuring stability and continued operation.