Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCreateMessageRequest ¶
func BuildCreateMessageRequest(cfg *Config) (*mcp.CreateMessageRequest, error)
BuildCreateMessageRequest validates and converts the config into a protocol request.
Types ¶
type Config ¶
type Config struct {
System string
User sampling.Message // required
History []sampling.Message
ModelPrefs *mcp.ModelPreferences
Temperature float64
MaxTokens int
StopSequences []string
Metadata map[string]any
IncludeContext string
}
Config accumulates sampling request parameters. Internal to engine + sessions. All fields are optional unless otherwise stated.
Click to show internal directories.
Click to hide internal directories.