Supported Types
FormatTextConfig
FormatJSONObjectConfig
FormatJSONSchemaConfig
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
formats := components.CreateFormatsText(components.FormatTextConfig{/* values here */})
formats := components.CreateFormatsJSONObject(components.FormatJSONObjectConfig{/* values here */})
formats := components.CreateFormatsJSONSchema(components.FormatJSONSchemaConfig{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch formats.Type {
case components.FormatsTypeText:
// formats.FormatTextConfig is populated
case components.FormatsTypeJSONObject:
// formats.FormatJSONObjectConfig is populated
case components.FormatsTypeJSONSchema:
// formats.FormatJSONSchemaConfig is populated
default:
// Unknown type - use formats.GetUnknownRaw() for raw JSON
}