ResourceLimits Type
Resource budget constraints for agent execution
Record fields
| Record Field |
Description
|
Full Usage:
MaxCostUsd
Field type: decimal
|
Maximum monetary cost in USD (approximate)
|
|
Maximum wall-clock time allowed
|
Full Usage:
MaxLlmCalls
Field type: int
|
Maximum number of LLM calls permitted
|
Full Usage:
MaxMemoryBytes
Field type: int64 option
|
Maximum memory (bytes) the sandbox may consume
|
Full Usage:
MaxToolCalls
Field type: int
|
Maximum number of tool invocations
|
Full Usage:
MaxTotalTokens
Field type: int
|
Maximum total tokens (input + output) across all calls
|
Static members
| Static member |
Description
|
Full Usage:
ResourceLimits.Constrained(durationSeconds) (llmCalls) (tokens)
Parameters:
int
llmCalls : int
tokens : int
Returns: ResourceLimits
|
|
|
|
Nao