public static class McpSchema.TextContent extends java.lang.Object implements McpSchema.Annotated, McpSchema.Content
构造器和说明 |
---|
TextContent(java.util.List<McpSchema.Role> audience,
java.lang.Double priority,
java.lang.String content)
已过时。
Only exists for backwards-compatibility purposes. Use
TextContent#TextContent(Annotations, String) instead. |
TextContent(McpSchema.Annotations annotations,
java.lang.String text) |
TextContent(java.lang.String content) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<McpSchema.Role> |
getAudience()
已过时。
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
java.lang.Double |
getPriority()
已过时。
Only exists for backwards-compatibility purposes. Use
McpSchema.Annotated.getAnnotations() instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotations
getMeta, type
public TextContent(McpSchema.Annotations annotations, java.lang.String text)
public TextContent(java.lang.String content)
@Deprecated public TextContent(java.util.List<McpSchema.Role> audience, java.lang.Double priority, java.lang.String content)
TextContent#TextContent(Annotations, String)
instead.@Deprecated public java.util.List<McpSchema.Role> getAudience()
McpSchema.Annotated.getAnnotations()
instead.@Deprecated public java.lang.Double getPriority()
McpSchema.Annotated.getAnnotations()
instead.