AxUsageContext Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxUsageContext.md type AxUsageContext

AxUsageContext

TypeScript
type AxUsageContext = object;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L166

Request-scoped attribution attached to normalized AI usage events.

Keep identity and request metadata here instead of in process-global state so concurrent multi-tenant calls cannot leak attribution across requests.

Properties

attributes?

TypeScript
optional attributes: Record<string, string | number | boolean>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L173


feature?

TypeScript
optional feature: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L172


parentRunId?

TypeScript
optional parentRunId: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L171


requestId?

TypeScript
optional requestId: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L169


runId?

TypeScript
optional runId: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L170


tenantId?

TypeScript
optional tenantId: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L167


userId?

TypeScript
optional userId: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L168

Docs