Class FunctionDefinition

    • Constructor Detail

    • Method Detail

      • name

         final String name()

        The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

      • description

         final Optional<String> description()

        A description of what the function does, used by the model to choose when and how to call the function.

      • strict

         final Optional<Boolean> strict()

        Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true. Learn more about Structured Outputs in the docs/guides/function-calling.

      • _name

         final JsonField<String> _name()

        The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

      • _description

         final JsonField<String> _description()

        A description of what the function does, used by the model to choose when and how to call the function.

      • _strict

         final JsonField<Boolean> _strict()

        Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true. Learn more about Structured Outputs in the docs/guides/function-calling.