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>,
State = unknown,
>(
options: StructuredChatResourceOptions <
Schema,
Tools,
Output,
State
>,
): StructuredChatResourceRef <Output, Tools, State>;structuredChatResource
StructuredChatResourceRef<Output, Tools, State>The options for the structured chat resource.
@typeSchemas.SchemaOutput@typeToolsChat.AnyTool@typeOutputs.InferSchemaOutput<Schema>@typeState@returnsStructuredChatResourceRef<Output, Tools, State>