completions
能力。
completion/complete
请求,通过引用类型指定正在补全的内容: 请求:context.arguments
对象中包含先前的补全内容,以便为后续请求提供上下文。 请求:类型 | 描述 | 示例 |
---|---|---|
ref/prompt | 按名称引用一个提示 | {"type": "ref/prompt", "name": "code_review"} |
ref/resource | 引用一个资源 URI | {"type": "ref/resource", "uri": "file:///{path}"} |
ref
:一个 PromptReference
或 ResourceReference
argument
:包含以下内容的对象
name
:参数名称value
:当前值context
:包含以下内容的对象
arguments
:已解析的参数名称与其值的映射。completion
:包含以下内容的对象
values
:建议数组(最多 100 个)total
:可选的总匹配数hasMore
:是否有更多结果的标志-32601
(能力不支持)-32602
(无效参数)-32602
(无效参数)-32603
(内部错误)