Class SystemMessageParam
-
- All Implemented Interfaces:
public final class SystemMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSystemMessageParam.BuilderA builder for SystemMessageParam.
public final classSystemMessageParam.Content
-
Method Summary
Modifier and Type Method Description final SystemMessageParam.Contentcontent()final JsonValue_role()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("system")final JsonField<SystemMessageParam.Content>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final SystemMessageParam.BuildertoBuilder()final SystemMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SystemMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of SystemMessageParam. final static SystemMessageParamof(SystemMessageParam.Content content)Returns an immutable instance of SystemMessageParam with the required content set to the given value. final static SystemMessageParamof(String string)Alias for calling of with Content.ofString(string).final static SystemMessageParamofBlocks(List<TextBlockParam> blocks)Alias for calling of with Content.ofBlocks(blocks).-
-
Method Detail
-
content
final SystemMessageParam.Content content()
-
_role
final JsonValue _role()
Expected to always return the following:
JsonValue.from("system")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<SystemMessageParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SystemMessageParam.Builder toBuilder()
-
validate
final SystemMessageParam 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 SystemMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of SystemMessageParam.
The following fields are required:
.content()
-
of
final static SystemMessageParam of(SystemMessageParam.Content content)
Returns an immutable instance of SystemMessageParam with the required content set to the given value.
-
of
final static SystemMessageParam of(String string)
Alias for calling of with
Content.ofString(string).
-
ofBlocks
final static SystemMessageParam ofBlocks(List<TextBlockParam> blocks)
Alias for calling of with
Content.ofBlocks(blocks).
-
-
-
-