Interface: DescriptionLike
Defined in: batteries/llm/chat_common/types.ts:35
Structural shape of a validator/Joi describe() output, as consumed by the JSON-Schema renderer. A loose superset — only the fields the renderer reads are typed; the index signature carries everything else through untouched.
Indexable
ts
[key: string]: unknownPass-through for any other validator metadata the renderer does not read.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
default? | unknown | Default value supplied when the field is absent. | batteries/llm/chat_common/types.ts:43 |
description? | string | Human-readable description of the field. | batteries/llm/chat_common/types.ts:39 |
enum? | unknown[] | Permitted values declared via an enum/valid set. | batteries/llm/chat_common/types.ts:45 |
examples? | unknown[] | Example values for the field. | batteries/llm/chat_common/types.ts:49 |
flags? | { default?: unknown; description?: string; presence?: string; } | Validator flags bag carrying presence, description, and default. | batteries/llm/chat_common/types.ts:57 |
flags.default? | unknown | - | batteries/llm/chat_common/types.ts:57 |
flags.description? | string | - | batteries/llm/chat_common/types.ts:57 |
flags.presence? | string | - | batteries/llm/chat_common/types.ts:57 |
items? | DescriptionLike | DescriptionLike[] | Element description(s) for array types. | batteries/llm/chat_common/types.ts:53 |
presence? | string | Presence flag ('optional', 'required', or 'forbidden') at the top level. | batteries/llm/chat_common/types.ts:41 |
properties? | Record<string, DescriptionLike> | Nested property descriptions, keyed by property name (for object types). | batteries/llm/chat_common/types.ts:51 |
required? | string[] | Names of required properties (for object types). | batteries/llm/chat_common/types.ts:55 |
type? | string | Validator type name (e.g. 'string', 'object', 'array'). | batteries/llm/chat_common/types.ts:37 |
valids? | unknown[] | Permitted values declared via the validator's valid() rule. | batteries/llm/chat_common/types.ts:47 |