Package com.embabel.agent.core
Class Budget
-
- All Implemented Interfaces:
public final class BudgetBudget for an agent process.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DoubleDEFAULT_COST_LIMITpublic final static IntegerDEFAULT_ACTION_LIMITpublic final static IntegerDEFAULT_TOKEN_LIMITpublic final static BudgetDEFAULTprivate final Doublecostprivate final Integeractionsprivate final Integertokens
-
Method Summary
Modifier and Type Method Description final DoublegetCost()final IntegergetActions()final IntegergetTokens()final EarlyTerminationPolicyearlyTerminationPolicy()final BudgetwithCost(Double cost)final BudgetwithActions(Integer actions)final BudgetwithTokens(Integer tokens)-
-
Constructor Detail
-
Budget
Budget(Double cost, Integer actions, Integer tokens)
- 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.
-
Budget
Budget(Double cost, Integer actions)
- Parameters:
cost- the cost of running the process, in USD.actions- the maximum number of actions the agent can perform before termination.
-
Budget
Budget(Double cost)
- Parameters:
cost- the cost of running the process, in USD.
-
Budget
Budget()
-
-
Method Detail
-
getActions
final Integer getActions()
-
earlyTerminationPolicy
final EarlyTerminationPolicy earlyTerminationPolicy()
-
withActions
final Budget withActions(Integer actions)
-
withTokens
final Budget withTokens(Integer tokens)
-
-
-
-