| 393 | func (*CompleteResult) isResult() {} |
| 394 | |
| 395 | type CreateMessageParams struct { |
| 396 | // This property is reserved by the protocol to allow clients and servers to |
| 397 | // attach additional metadata to their responses. |
| 398 | Meta `json:"_meta,omitempty"` |
| 399 | // A request to include context from one or more MCP servers (including the |
| 400 | // caller), to be attached to the prompt. The client may ignore this request. |
| 401 | // |
| 402 | // The default is "none". Values "thisServer" and |
| 403 | // "allServers" are soft-deprecated. Servers SHOULD only use these values if |
| 404 | // the client declares ClientCapabilities.sampling.context. These values may |
| 405 | // be removed in future spec releases. |
| 406 | IncludeContext string `json:"includeContext,omitempty"` |
| 407 | // The maximum number of tokens to sample, as requested by the server. The |
| 408 | // client may choose to sample fewer tokens than requested. |
| 409 | MaxTokens int64 `json:"maxTokens"` |
| 410 | Messages []*SamplingMessage `json:"messages"` |
| 411 | // Optional metadata to pass through to the LLM provider. The format of this |
| 412 | // metadata is provider-specific. |
| 413 | Metadata any `json:"metadata,omitempty"` |
| 414 | // The server's preferences for which model to select. The client may ignore |
| 415 | // these preferences. |
| 416 | ModelPreferences *ModelPreferences `json:"modelPreferences,omitempty"` |
| 417 | StopSequences []string `json:"stopSequences,omitempty"` |
| 418 | // An optional system prompt the server wants to use for sampling. The client |
| 419 | // may modify or omit this prompt. |
| 420 | SystemPrompt string `json:"systemPrompt,omitempty"` |
| 421 | Temperature float64 `json:"temperature,omitempty"` |
| 422 | } |
| 423 | |
| 424 | func (x *CreateMessageParams) isParams() {} |
| 425 | func (x *CreateMessageParams) GetProgressToken() any { return getProgressToken(x) } |
nothing calls this directly
no outgoing calls
no test coverage detected