Class BetaComputerKeyToolUseBlock

    • Constructor Detail

    • Method Detail

      • input

         final BetaComputerKeyInput input()

        Press a key or key-combination on the keyboard. Use "+" to combine modifiers with a key (e.g. "ctrl+s", "alt+Tab", "ctrl+shift+Escape"). Key names are case-insensitive; common names like "Return", "Tab", "Escape", "Up", "Down", "Left", "Right", "Home", "End", "Page_Up", "Page_Down", "Delete", "BackSpace" are supported.

      • _name

         final JsonValue _name()

        Expected to always return the following:

        JsonValue.from("key")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _toolsetName

         final JsonValue _toolsetName()

        Expected to always return the following:

        JsonValue.from("computer")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _type

         final JsonValue _type()

        Expected to always return the following:

        JsonValue.from("tool_use")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _caller

         final JsonField<BetaToolUseCaller> _caller()

        Returns the raw JSON value of caller.

        Unlike caller, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaComputerKeyToolUseBlock validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.