magnitude-core
Version:
Magnitude e2e testing agent
48 lines (44 loc) • 1.88 kB
TypeScript
/*************************************************************************************************
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 { ExtractedData, PartialRecipe, QueryResponse } 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;
}): PartialRecipe;
ExtractData(llmResponse: string, __baml_options__?: {
tb?: TypeBuilder;
clientRegistry?: ClientRegistry;
}): ExtractedData;
QueryMemory(llmResponse: string, __baml_options__?: {
tb?: TypeBuilder;
clientRegistry?: ClientRegistry;
}): QueryResponse;
}
export declare class LlmStreamParser {
private runtime;
private ctxManager;
constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager);
CreatePartialRecipe(llmResponse: string, __baml_options__?: {
tb?: TypeBuilder;
clientRegistry?: ClientRegistry;
}): partial_types.PartialRecipe;
ExtractData(llmResponse: string, __baml_options__?: {
tb?: TypeBuilder;
clientRegistry?: ClientRegistry;
}): partial_types.ExtractedData;
QueryMemory(llmResponse: string, __baml_options__?: {
tb?: TypeBuilder;
clientRegistry?: ClientRegistry;
}): partial_types.QueryResponse;
}