Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
AllowedCallers[]components.AnthropicAllowedCallers:heavy_minus_sign:N/A[
“direct”
]
CacheControl*components.AnthropicCacheControlDirective:heavy_minus_sign:Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.{"type": "ephemeral"}
Cachingoptionalnullable.OptionalNullable[components.Caching]:heavy_minus_sign:N/A{"type": "ephemeral"}
DeferLoading*bool:heavy_minus_sign:N/A
MaxUses*int64:heavy_minus_sign:N/A
Modelstring:heavy_check_mark:N/A
Namecomponents.NameAdvisor:heavy_check_mark:N/A
Typecomponents.TypeAdvisor20260301:heavy_check_mark:N/A