CreatePresetsMessagesRequest - Go SDK

CreatePresetsMessagesRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
Slugstring✔️URL-safe slug identifying the preset. Created if it does not exist.my-preset
MessagesRequestcomponents.MessagesRequest✔️N/A{"max_tokens": 1024,"messages": [{"content": "Hello, how are you?","role": "user"}
],
“model”: “anthropic/claude-4.5-sonnet-20250929”,
“temperature”: 0.7
}