Header menu logo Nao

ResourceLimits Type

Resource budget constraints for agent execution

Record fields

Record Field Description

MaxCostUsd

Full Usage: MaxCostUsd

Field type: decimal

Maximum monetary cost in USD (approximate)

Field type: decimal

MaxDuration

Full Usage: MaxDuration

Field type: TimeSpan

Maximum wall-clock time allowed

Field type: TimeSpan

MaxLlmCalls

Full Usage: MaxLlmCalls

Field type: int

Maximum number of LLM calls permitted

Field type: int

MaxMemoryBytes

Full Usage: MaxMemoryBytes

Field type: int64 option

Maximum memory (bytes) the sandbox may consume

Field type: int64 option

MaxToolCalls

Full Usage: MaxToolCalls

Field type: int

Maximum number of tool invocations

Field type: int

MaxTotalTokens

Full Usage: MaxTotalTokens

Field type: int

Maximum total tokens (input + output) across all calls

Field type: int

Static members

Static member Description

ResourceLimits.Constrained(durationSeconds) (llmCalls) (tokens)

Full Usage: ResourceLimits.Constrained(durationSeconds) (llmCalls) (tokens)

Parameters:
    durationSeconds : int
    llmCalls : int
    tokens : int

Returns: ResourceLimits
durationSeconds : int
llmCalls : int
tokens : int
Returns: ResourceLimits

ResourceLimits.Unlimited

Full Usage: ResourceLimits.Unlimited

Returns: ResourceLimits
Returns: ResourceLimits

Type something to start searching.