| Package | Description |
|---|---|
| io.modelcontextprotocol.spec |
| Modifier and Type | Method and Description |
|---|---|
static McpSchema.Role |
McpSchema.Role.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static McpSchema.Role[] |
McpSchema.Role.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
List<McpSchema.Role> |
McpSchema.TextContent.getAudience()
Deprecated.
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
List<McpSchema.Role> |
McpSchema.ImageContent.getAudience()
Deprecated.
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
List<McpSchema.Role> |
McpSchema.EmbeddedResource.getAudience()
Deprecated.
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
| Modifier and Type | Method and Description |
|---|---|
McpSchema.CreateMessageResult.Builder |
McpSchema.CreateMessageResult.Builder.role(McpSchema.Role role) |
| Constructor and Description |
|---|
CreateMessageResult(McpSchema.Role role,
McpSchema.Content content,
String model,
McpSchema.CreateMessageResult.StopReason stopReason) |
| Constructor and Description |
|---|
EmbeddedResource(List<McpSchema.Role> audience,
Double priority,
McpSchema.ResourceContents resource)
Deprecated.
Only exists for backwards-compatibility purposes. Use
EmbeddedResource#EmbeddedResource(Annotations, ResourceContents)
instead. |
ImageContent(List<McpSchema.Role> audience,
Double priority,
String data,
String mimeType)
Deprecated.
Only exists for backwards-compatibility purposes. Use
ImageContent#ImageContent(Annotations, String, String) instead. |
TextContent(List<McpSchema.Role> audience,
Double priority,
String content)
Deprecated.
Only exists for backwards-compatibility purposes. Use
TextContent#TextContent(Annotations, String) instead. |
Copyright © 2025. All rights reserved.