Interface BetaManagedAgentsSessionThreadStatusIdleEvent.StopReason.Visitor

    • 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
    • Constructor Detail

    • Method Detail

      • visitBudgetReached

         abstract T visitBudgetReached(BetaManagedAgentsSessionBudgetReached budgetReached)

        The agent stopped because the session's tracked list cost reached its budget, or because its usage includes a model with no list price (which the budget cannot measure). Raise the budget to continue — or, if raising is rejected because a model has no list price, remove the budget.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of StopReason to a value of type T.

        An instance of StopReason can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.