Skip to content

Type Alias: ChatSessionModelFunction<Params>

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

Type Parameters

Type ParameterDefault type
Params extends GbnfJsonSchema | undefinedGbnfJsonSchema | undefined

Type declaration

description?

ts
readonly optional description: string;

params?

ts
readonly optional params: Params;

handler()

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

Parameters

ParameterType
paramsGbnfJsonSchemaToType<Params>

Returns

any

Defined in

types.ts:152