public static class McpSchema.ModelPreferences
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
McpSchema.ModelPreferences.Builder |
| 构造器和说明 |
|---|
ModelPreferences(java.util.List<McpSchema.ModelHint> hints,
java.lang.Double costPriority,
java.lang.Double speedPriority,
java.lang.Double intelligencePriority) |
| 限定符和类型 | 方法和说明 |
|---|---|
static McpSchema.ModelPreferences.Builder |
builder() |
java.lang.Double |
costPriority() |
java.util.List<McpSchema.ModelHint> |
hints() |
java.lang.Double |
intelligencePriority() |
java.lang.Double |
speedPriority() |
public ModelPreferences(java.util.List<McpSchema.ModelHint> hints, java.lang.Double costPriority, java.lang.Double speedPriority, java.lang.Double intelligencePriority)
hints - Optional hints to use for model selection. If multiple hints are
specified, the client MUST evaluate them in order (such that the first match is
taken). The client SHOULD prioritize these hints over the numeric priorities, but
MAY still use the priorities to select from ambiguous matchescostPriority - How much to prioritize cost when selecting a model. A value of
0 means cost is not important, while a value of 1 means cost is the most important
factorspeedPriority - How much to prioritize sampling speed (latency) when selecting
a model. A value of 0 means speed is not important, while a value of 1 means speed
is the most important factorintelligencePriority - How much to prioritize intelligence and capabilities
when selecting a model. A value of 0 means intelligence is not important, while a
value of 1 means intelligence is the most important factorpublic java.util.List<McpSchema.ModelHint> hints()
public java.lang.Double costPriority()
public java.lang.Double speedPriority()
public java.lang.Double intelligencePriority()
public static McpSchema.ModelPreferences.Builder builder()