Constructors
constructor
- new Registry(parent?: Registry): Registry
Properties
Readonly
asyncStore
asyncStore: AsyncStore
Readonly
dotprompt
dotprompt: Dotprompt
Optional
parent
Methods
initializeAllPlugins
- initializeAllPlugins(): Promise<void>
Returns Promise<void>
initializePlugin
- initializePlugin(name: string): Promise<void | InitializedPlugin>
Returns Promise<void | InitializedPlugin>
The plugin.
listValues
- listValues<T>(type: string): Promise<Record<string, T>>
Returns Promise<Record<string, T>>
lookupAction
- lookupAction<
I extends ZodType<any, any, any, I>,
O extends ZodType<any, any, any, O>,
R extends Action<I, O, ZodTypeAny>,
>(
key: string,
): Promise<R> Returns Promise<R>
The action.
lookupPlugin
- lookupPlugin(name: string): undefined | PluginProvider
Returns undefined | PluginProvider
The plugin provider.
lookupSchema
- lookupSchema(name: string): undefined | Schema
Returns undefined | Schema
The schema.
lookupValue
- lookupValue<T = unknown>(type: string, key: string): Promise<undefined | T>
Returns Promise<undefined | T>
registerAction
- registerAction<
I extends ZodType<any, any, any, I>,
O extends ZodType<any, any, any, O>,
>(
type: ActionType,
action: Action<I, O, ZodTypeAny>,
): void Returns void
registerActionAsync
- registerActionAsync<
I extends ZodType<any, any, any, I>,
O extends ZodType<any, any, any, O>,
>(
type: ActionType,
name: string,
action: Promise<Action<I, O, ZodTypeAny>>,
): void Returns void
registerPluginProvider
- registerPluginProvider(name: string, provider: PluginProvider): void
Parameters
- name: string
- provider: PluginProvider
Returns void
registerSchema
- registerSchema(name: string, data: Schema): void
Returns void
registerValue
- registerValue(type: string, name: string, value: any): void
Parameters
- type: string
- name: string
- value: any
Returns void
The registry is used to store and lookup actions, trace stores, flow state stores, plugins, and schemas.