Package com.anthropic.models.messages
Class SystemMessageParam.Builder
-
- All Implemented Interfaces:
public final class SystemMessageParam.BuilderA builder for SystemMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final SystemMessageParam.Builder content(SystemMessageParam.Content content)
-
content
final SystemMessageParam.Builder content(JsonField<SystemMessageParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final SystemMessageParam.Builder content(String string)
Alias for calling content with
Content.ofString(string).
-
role
final SystemMessageParam.Builder role(JsonValue role)
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("system")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SystemMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
contentOfBlocks
final SystemMessageParam.Builder contentOfBlocks(List<TextBlockParam> blocks)
Alias for calling content with
Content.ofBlocks(blocks).
-
putAdditionalProperty
final SystemMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SystemMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SystemMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SystemMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SystemMessageParam build()
Returns an immutable instance of SystemMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-