Builder

class Builder

Nested builder for Budget objects.

Functions

Link copied to clipboard
fun actions(actions: Int): Budget.Builder

Set the maximum number of actions the agent can perform before termination.

Link copied to clipboard
fun build(): Budget

Build the Budget.

Link copied to clipboard

Sets the cost of running the process, in USD.

Link copied to clipboard
fun tokens(tokens: Int): Budget.Builder

Set a maximum the maximum number of tokens the agent can use before termination. This can be useful in the case of local models where the cost is not directly measurable, but we don't want excessive work.