public static class McpSchema.Annotations
extends java.lang.Object
| 构造器和说明 |
|---|
Annotations(java.util.List<McpSchema.Role> audience,
java.lang.Double priority) |
Annotations(java.util.List<McpSchema.Role> audience,
java.lang.Double priority,
java.lang.String lastModified) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<McpSchema.Role> |
audience() |
java.lang.String |
lastModified() |
java.lang.Double |
priority() |
public Annotations(java.util.List<McpSchema.Role> audience, java.lang.Double priority, java.lang.String lastModified)
audience - Describes who the intended customer of this object or data is. It
can include multiple entries to indicate content useful for multiple audiences
(e.g., `["user", "assistant"]`).priority - Describes how important this data is for operating the server. A
value of 1 means "most important," and indicates that the data is effectively
required, while 0 means "least important," and indicates that the data is entirely
optional. It is a number between 0 and 1.public Annotations(java.util.List<McpSchema.Role> audience, java.lang.Double priority)
public java.util.List<McpSchema.Role> audience()
public java.lang.Double priority()
public java.lang.String lastModified()