feat: add thoughts, cached content, and tool use token counts to UsageMetadata (#9) #14
Reference in New Issue
Block a user
Delete Branch "feat/usage-metadata-token-counts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #9
Summary
cached_content_token_count,tool_use_prompt_token_count, andthoughts_token_counttoUsageMetadata.Clone, Debug, Default, PartialEq, Eq, Serialize, DeserializeonUsageMetadata.#[serde(skip_serializing_if = "Option::is_none")]to all fields inUsageMetadata.Testing
parses_usage_metadata_with_all_token_countsverifying all fields are deserialized from camelCase JSON.serializes_usage_metadata_skipping_none_fieldsverifyingNonefields are omitted during serialization.cargo testandcargo clippypass cleanly.