struct

Fm::ContextUsage

Inherits Struct < Value < Object

Estimated context usage for a session.

Constructors

new(estimated_tokens : Int32, max_tokens : Int32, reserved_response_tokens : Int32, available_tokens : Int32, utilization : Float32, over_limit : Bool)
Source

Instance methods

available_tokens

Estimated tokens available before hitting the limit.

Source
estimated_tokens

Estimated number of tokens consumed by the transcript.

Source
max_tokens

Maximum tokens configured for the session.

Source
over_limit?

Whether the estimate exceeds the available budget.

Source
reserved_response_tokens

Tokens reserved for the next response.

Source
utilization

Estimated utilization ratio (0.0 - 1.0+).

Source