hashbrown

StructuredChatResourceOptions

Options for the structured chat resource.

API

interface StructuredChatResourceOptions<Schema extends s.HashbrownType, Tools extends Chat.AnyTool, Output extends s.Infer<Schema> = s.Infer<Schema>>  {
apiUrl?: string;
debounce?: number;
debugName?: string;
messages?: Chat.Message<Output, Tools>[];
model:  KnownModelIds  |
   Signal < KnownModelIds >;
retries?: number;
schema: Schema;
system: string |  Signal <string>;
tools?: Tools[];
}
StructuredChatResourceOptions
@typeSchema
s.HashbrownType
@typeTools
Chat.AnyTool
@typeOutput
s.Infer<Schema>