Initialize a Hashbrown chat instance with the given configuration.
@template Output - The type of messages expected from the LLM. @template Tools - The set of tools to register with the chat instance.
API
export declare function fryHashbrown<
Tools extends Chat.AnyTool ,
>(init: {
debugName?: string;
apiUrl: string;
model: KnownModelIds ;
system: string;
messages?: Chat.Message <string, Tools>[];
tools?: Tools[];
middleware?: Chat.Middleware [];
emulateStructuredOutput?: boolean;
debounce?: number;
retries?: number;
}): Hashbrown <string, Tools>;
fryHashbrown
Hashbrown<string, Tools>
@param
init:
{
debugName?: string;
apiUrl: string;
model: KnownModelIds;
system: string;
messages?: Chat.Message<string, Tools>[];
tools?: Tools[];
middleware?: Chat.Middleware[];
emulateStructuredOutput?: boolean;
debounce?: number;
retries?: number;
}
Initialization options.
@type
Tools
Chat.AnyTool
@returns
Hashbrown<string, Tools>