Skip to content

Type Alias: ChatSessionModelFunction<Params>

ts
type ChatSessionModelFunction<Params> = {
  description: string;
  params: Readonly<Params>;
  handler: (params: GbnfJsonSchemaToType<Params>) => any;
};

Defined in: types.ts:152

Type Parameters

Type ParameterDefault type
Params extends GbnfJsonSchema | undefinedGbnfJsonSchema | undefined

Type declaration

description?

ts
readonly optional description: string;

params?

ts
readonly optional params: Readonly<Params>;

handler()

ts
readonly handler: (params: GbnfJsonSchemaToType<Params>) => any;

Parameters

ParameterType
paramsGbnfJsonSchemaToType<Params>

Returns

any