feat(completion): fix the schema about CompleteResult
/**
* The server's response to a completion/complete request
*/
export
interface CompleteResult extends Result {
completion: {
/**
*
An array of completion values. Must not exceed 100 items.
*/
values: string[];
/**
* The total number of completion options
available. This can exceed the number of values actually sent in the
response.
*/
total?: number;
/**
* Indicates whether
there are additional completion options beyond those provided in the
current response, even if the exact total is unknown.
*/
hasMore?: boolean;
};
}
This commit is contained in:
parent
344f1b8383
commit
e4091f458a
1 changed files with 1 additions and 1 deletions
|
|
@ -1239,7 +1239,7 @@ public final class McpSchema {
|
|||
|
||||
@JsonInclude(JsonInclude.Include.NON_ABSENT)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public record CompleteResult(@JsonProperty("values") CompleteCompletion completion) { // @formatter:off
|
||||
public record CompleteResult(@JsonProperty("completion") CompleteCompletion completion) { // @formatter:off
|
||||
|
||||
public record CompleteCompletion(
|
||||
@JsonProperty("values") List<String> values,
|
||||
|
|
|
|||
Loading…
Reference in a new issue