Interface BetaManagedAgentsWebSearchToolConfigParams.PermissionPolicy.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
    • Method Summary

      Modifier and Type Method Description
      abstract T visitAlwaysAllow(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow) Tool calls are automatically approved without user confirmation.
      abstract T visitAlwaysAsk(BetaManagedAgentsAlwaysAskPolicy alwaysAsk) Tool calls require user confirmation before execution.
      abstract T visitAuto(BetaManagedAgentsAutoPolicy auto) The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk.
      T unknown(JsonValue json) Maps an unknown variant of PermissionPolicy to a value of type T.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • visitAuto

         abstract T visitAuto(BetaManagedAgentsAutoPolicy auto)

        The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask, or for some causes to deny, for example when the organization is out of credits or has reached a spend limit.

      • unknown

         T unknown(JsonValue json)

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

        An instance of PermissionPolicy 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.