Class NamespaceTool.Tool.Function.Builder
-
- All Implemented Interfaces:
public final class NamespaceTool.Tool.Function.BuilderA builder for Function.
-
-
Method Summary
-
-
Method Detail
-
name
final NamespaceTool.Tool.Function.Builder name(String name)
-
name
final NamespaceTool.Tool.Function.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final NamespaceTool.Tool.Function.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("function")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedCallers
final NamespaceTool.Tool.Function.Builder allowedCallers(List<NamespaceTool.Tool.Function.AllowedCaller> allowedCallers)
The tool invocation context(s).
-
allowedCallers
final NamespaceTool.Tool.Function.Builder allowedCallers(Optional<List<NamespaceTool.Tool.Function.AllowedCaller>> allowedCallers)
Alias for calling Builder.allowedCallers with
allowedCallers.orElse(null).
-
allowedCallers
final NamespaceTool.Tool.Function.Builder allowedCallers(JsonField<List<NamespaceTool.Tool.Function.AllowedCaller>> allowedCallers)
Sets Builder.allowedCallers to an arbitrary JSON value.
You should usually call Builder.allowedCallers with a well-typed
List<AllowedCaller>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAllowedCaller
final NamespaceTool.Tool.Function.Builder addAllowedCaller(NamespaceTool.Tool.Function.AllowedCaller allowedCaller)
Adds a single AllowedCaller to allowedCallers.
-
deferLoading
final NamespaceTool.Tool.Function.Builder deferLoading(Boolean deferLoading)
Whether this function should be deferred and discovered via tool search.
-
deferLoading
final NamespaceTool.Tool.Function.Builder deferLoading(JsonField<Boolean> deferLoading)
Sets Builder.deferLoading to an arbitrary JSON value.
You should usually call Builder.deferLoading with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final NamespaceTool.Tool.Function.Builder description(String description)
-
description
final NamespaceTool.Tool.Function.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final NamespaceTool.Tool.Function.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputSchema
final NamespaceTool.Tool.Function.Builder outputSchema(NamespaceTool.Tool.Function.OutputSchema outputSchema)
A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.
-
outputSchema
final NamespaceTool.Tool.Function.Builder outputSchema(Optional<NamespaceTool.Tool.Function.OutputSchema> outputSchema)
Alias for calling Builder.outputSchema with
outputSchema.orElse(null).
-
outputSchema
final NamespaceTool.Tool.Function.Builder outputSchema(JsonField<NamespaceTool.Tool.Function.OutputSchema> outputSchema)
Sets Builder.outputSchema to an arbitrary JSON value.
You should usually call Builder.outputSchema with a well-typed OutputSchema value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
parameters
final NamespaceTool.Tool.Function.Builder parameters(JsonValue parameters)
-
strict
final NamespaceTool.Tool.Function.Builder strict(Boolean strict)
Whether to enforce strict parameter validation. If omitted, Responses attempts to use strict validation when the schema is compatible, and falls back to non-strict validation otherwise.
-
strict
final NamespaceTool.Tool.Function.Builder strict(Boolean strict)
Alias for Builder.strict.
This unboxed primitive overload exists for backwards compatibility.
-
strict
final NamespaceTool.Tool.Function.Builder strict(Optional<Boolean> strict)
Alias for calling Builder.strict with
strict.orElse(null).
-
strict
final NamespaceTool.Tool.Function.Builder strict(JsonField<Boolean> strict)
Sets Builder.strict to an arbitrary JSON value.
You should usually call Builder.strict with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final NamespaceTool.Tool.Function.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final NamespaceTool.Tool.Function.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final NamespaceTool.Tool.Function.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final NamespaceTool.Tool.Function.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final NamespaceTool.Tool.Function.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final NamespaceTool.Tool.Function build()
Returns an immutable instance of Function.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-