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(McpSchema.Annotations annotations,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.Object> meta) |
TextContent(java.lang.String content) |
| 限定符和类型 | 方法和说明 |
|---|---|
McpSchema.Annotations |
annotations() |
java.util.List<McpSchema.Role> |
audience()
已过时。
Only exists for backwards-compatibility purposes. Use
annotations() instead. |
java.util.Map<java.lang.String,java.lang.Object> |
meta() |
java.lang.Double |
priority()
已过时。
Only exists for backwards-compatibility purposes. Use
annotations() instead. |
java.lang.String |
text() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypepublic TextContent(McpSchema.Annotations annotations, java.lang.String text, java.util.Map<java.lang.String,java.lang.Object> meta)
annotations - Optional annotations for the clienttext - The text content of the messagemeta - See specification for notes on _meta usagepublic 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.public McpSchema.Annotations annotations()
annotations 在接口中 McpSchema.Annotatedpublic java.lang.String text()
public java.util.Map<java.lang.String,java.lang.Object> meta()
meta 在接口中 McpSchema.Meta@Deprecated public java.util.List<McpSchema.Role> audience()
annotations() instead.@Deprecated public java.lang.Double priority()
annotations() instead.