Budget

data class Budget(val cost: Double = DEFAULT_COST_LIMIT, val actions: Int = DEFAULT_ACTION_LIMIT, val tokens: Int = DEFAULT_TOKEN_LIMIT)

Budget for an agent process.

Parameters

cost

the cost of running the process, in USD.

actions

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

tokens

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.

Constructors

Link copied to clipboard
constructor(cost: Double = DEFAULT_COST_LIMIT, actions: Int = DEFAULT_ACTION_LIMIT, tokens: Int = DEFAULT_TOKEN_LIMIT)

Types

Link copied to clipboard
class Builder

Nested builder for Budget objects.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tokens: Int

Functions