public static class McpSchema.TextContent extends Object implements McpSchema.Annotated, McpSchema.Content
| Constructor and Description |
|---|
TextContent(List<McpSchema.Role> audience,
Double priority,
String content)
Deprecated.
Only exists for backwards-compatibility purposes. Use
TextContent#TextContent(Annotations, String) instead. |
TextContent(McpSchema.Annotations annotations,
String text) |
TextContent(String content) |
| Modifier and Type | Method and Description |
|---|---|
List<McpSchema.Role> |
getAudience()
Deprecated.
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
Double |
getPriority()
Deprecated.
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationsgetMeta, typepublic TextContent(McpSchema.Annotations annotations, String text)
public TextContent(String content)
@Deprecated public TextContent(List<McpSchema.Role> audience, Double priority, String content)
TextContent#TextContent(Annotations, String) instead.@Deprecated public List<McpSchema.Role> getAudience()
McpSchema.Annotated.getAnnotations() instead.@Deprecated public Double getPriority()
McpSchema.Annotated.getAnnotations() instead.Copyright © 2025. All rights reserved.