Class Budget.Builder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Budget.Builder cost(Double cost) Sets the cost of running the process, in USD.
      final Budget.Builder actions(Integer actions) Set the maximum number of actions the agent can perform before termination.
      final Budget.Builder tokens(Integer tokens) Set a maximum the maximum number of tokens the agent can use before termination.
      final Budget build() Build the Budget.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • actions

         final Budget.Builder actions(Integer actions)

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

        Parameters:
        actions - the action count limit
        Returns:

        this Builder

      • tokens

         final Budget.Builder tokens(Integer tokens)

        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.

        Parameters:
        tokens - the token count limit
        Returns:

        this Builder