UNPKG

magnitude-core

Version:
54 lines (50 loc) 2.16 kB
/************************************************************************************************* Welcome to Baml! To use this generated code, please run one of the following: $ npm install @boundaryml/baml $ yarn add @boundaryml/baml $ pnpm add @boundaryml/baml *************************************************************************************************/ import type { BamlRuntime, BamlCtxManager, ClientRegistry } from "@boundaryml/baml"; import type { partial_types } from "./partial_types"; import type * as types from "./types"; import type TypeBuilder from "./type_builder"; export declare class LlmResponseParser { private runtime; private ctxManager; constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager); CreatePartialRecipe(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): types.PartialRecipe; ExtractData(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): types.ExtractedData; QueryMemory(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): types.QueryResponse; } export declare class LlmStreamParser { private runtime; private ctxManager; constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager); CreatePartialRecipe(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): partial_types.PartialRecipe; ExtractData(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): partial_types.ExtractedData; QueryMemory(llmResponse: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; env?: Record<string, string | undefined>; }): partial_types.QueryResponse; }