TaskClassificationItem - Go SDK

TaskClassificationItem type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
CategoryTokenSharefloat64✔️Fraction of this classification’s token volume within its macro-category (0–1). Sums to 1 across all classifications sharing the same macro_category.0.48
CategoryUsageSharefloat64✔️Fraction of this classification’s usage within its macro-category (0–1). Sums to 1 across all classifications sharing the same macro_category.0.51
DisplayNamestring✔️Human-readable label for the classification.Code Generation
MacroCategorystring✔️Coarse grouping derived from the tag prefix: code, data, agent, or general.code
Models[]components.TaskClassificationModel✔️Top models for this classification by request volume, sorted descending. Each entry reports the model’s share of this classification’s requests and tokens.
Tagstring✔️Classification tag identifier (e.g. code:general_impl, agent:web_search).code:general_impl
TokenSharefloat64✔️Fraction of classified sampled token volume (prompt + completion) attributed to this classification (0–1). The unclassified other bucket is excluded from the denominator.0.31
UsageSharefloat64✔️Fraction of classified sampled requests attributed to this classification (0–1). The unclassified other bucket is excluded from the denominator.0.23