Class ChatCompletionFunctionMessageParam
-
- All Implemented Interfaces:
@Deprecated(message = "deprecated") public final class ChatCompletionFunctionMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionFunctionMessageParam.Builder
A builder for ChatCompletionFunctionMessageParam.
-
Method Summary
Modifier and Type Method Description final Optional<String>
content()
The contents of the function message. final String
name()
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.Builder
toBuilder()
final ChatCompletionFunctionMessageParam
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionFunctionMessageParam.Builder
builder()
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()
-
builder
final static ChatCompletionFunctionMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionFunctionMessageParam.
The following fields are required:
.content() .name()
-
-
-
-