Creates a structured chat resource.
API
declare function structuredChatResource<
Schema extends s.HashbrownType ,
Tools extends Chat.AnyTool ,
Output extends
s.Infer <Schema> = s.Infer <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.
@typeSchemas.HashbrownType@typeToolsChat.AnyTool@typeOutputs.Infer<Schema>@returnsStructuredChatResourceRef<Output, Tools>