Package com.anthropic.models.messages
Class MessageParam
-
- All Implemented Interfaces:
public final class MessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageParam.BuilderA builder for MessageParam.
public final classMessageParam.Contentpublic final classMessageParam.Role
-
Method Summary
Modifier and Type Method Description final MessageParam.Contentcontent()final MessageParam.Rolerole()final JsonField<MessageParam.Content>_content()Returns the raw JSON value of content. final JsonField<MessageParam.Role>_role()Returns the raw JSON value of role. final Map<String, JsonValue>_additionalProperties()final MessageParam.BuildertoBuilder()final MessageParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of MessageParam. -
-
Method Detail
-
content
final MessageParam.Content content()
-
role
final MessageParam.Role role()
-
_content
final JsonField<MessageParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<MessageParam.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageParam.Builder toBuilder()
-
validate
final MessageParam validate()
-
builder
final static MessageParam.Builder builder()
Returns a mutable builder for constructing an instance of MessageParam.
The following fields are required:
.content() .role()
-
-
-
-