UNPKG

magnitude-core

Version:
52 lines (48 loc) 2.25 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, Image, ClientRegistry, Collector } from "@boundaryml/baml"; import type { RecursivePartialNull as MovedRecursivePartialNull } from "./types"; import type { ExtractedData, ModularMemoryContext, PartialRecipe, QueryResponse } from "./types"; import type TypeBuilder from "./type_builder"; import { HttpRequest, HttpStreamRequest } from "./sync_request"; import { LlmResponseParser, LlmStreamParser } from "./parser"; /** * @deprecated Use RecursivePartialNull from 'baml_client/types' instead. * Example: * ```ts * import { RecursivePartialNull } from './baml_client/types' * ``` */ export type RecursivePartialNull<T> = MovedRecursivePartialNull<T>; type BamlCallOptions = { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; env?: Record<string, string | undefined>; }; export declare class BamlSyncClient { private runtime; private ctxManager; private bamlOptions?; private httpRequest; private httpStreamRequest; private llmResponseParser; private llmStreamParser; private bamlOptions; constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager, bamlOptions?: BamlCallOptions | undefined); withOptions(bamlOptions: BamlCallOptions): BamlSyncClient; get stream(): void; get request(): HttpRequest; get streamRequest(): HttpStreamRequest; get parse(): LlmResponseParser; get parseStream(): LlmStreamParser; CreatePartialRecipe(memory: ModularMemoryContext, task: string, __baml_options__?: BamlCallOptions): PartialRecipe; ExtractData(instructions: string, screenshot: Image, domContent: string, __baml_options__?: BamlCallOptions): ExtractedData; QueryMemory(memory: ModularMemoryContext, query: string, __baml_options__?: BamlCallOptions): QueryResponse; } export declare const b: BamlSyncClient; export {};