Class ChatCompletionFunctionMessageParam
-
- All Implemented Interfaces:
@Deprecated(message = "deprecated") public final class ChatCompletionFunctionMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionFunctionMessageParam.BuilderA builder for ChatCompletionFunctionMessageParam.
-
Method Summary
Modifier and Type Method Description final Optional<String>content()The contents of the function message. final Stringname()The name of the function to call. final JsonValue_role()The role of the messages author, in this case function.final JsonField<String>_content()Returns the raw JSON value of content. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final ChatCompletionFunctionMessageParam.BuildertoBuilder()final ChatCompletionFunctionMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionFunctionMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionFunctionMessageParam. -
-
Method Detail
-
_role
final JsonValue _role()
The role of the messages author, in this case
function.Expected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionFunctionMessageParam.Builder toBuilder()
-
validate
final ChatCompletionFunctionMessageParam 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.
-
builder
final static ChatCompletionFunctionMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionFunctionMessageParam.
The following fields are required:
.content() .name()
-
-
-
-