hashbrown

structuredChatResource

Creates a structured chat resource.

API

declare function structuredChatResource<
  Schema extends  s.SchemaOutput ,
  Tools extends  Chat.AnyTool ,
  Output extends  s.InferSchemaOutput <Schema> =
     s.InferSchemaOutput <Schema>,
>(
  options:  StructuredChatResourceOptions <
    Schema,
    Tools,
    Output
  >,
):  StructuredChatResourceRef <Output, Tools>;
structuredChatResource
StructuredChatResourceRef<Output, Tools>
@paramoptions:
StructuredChatResourceOptions<Schema, Tools, Output>

The options for the structured chat resource.

@typeSchema
s.SchemaOutput
@typeTools
Chat.AnyTool
@typeOutput
s.InferSchemaOutput<Schema>
@returns
StructuredChatResourceRef<Output, Tools>