ErrorContent
Error content type for LLM safety and content filtering errors.Import
Type Definition
Fields
Must be
"error".Safety error value with
type (always "safety") and a value string describing the error.Example
Related
- MessageContent — union type that includes
ErrorContent - PromptMessage — uses
MessageContent[]as itscontentfield