magnitude-core
Version:
Magnitude e2e testing agent
51 lines (47 loc) • 2.29 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, Image, ClientRegistry, Collector } from "@boundaryml/baml";
import type { RecursivePartialNull as MovedRecursivePartialNull } from "./types";
import type * as types 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 httpRequest;
private httpStreamRequest;
private llmResponseParser;
private llmStreamParser;
private bamlOptions;
constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager, bamlOptions?: BamlCallOptions);
withOptions(bamlOptions: BamlCallOptions): BamlSyncClient;
get stream(): void;
get request(): HttpRequest;
get streamRequest(): HttpStreamRequest;
get parse(): LlmResponseParser;
get parseStream(): LlmStreamParser;
CreatePartialRecipe(memory: types.AgentContext, task: string, taskData: (Image | string)[], includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions): types.PartialRecipe;
ExtractData(instructions: string, screenshot: Image, domContent: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions): types.ExtractedData;
QueryMemory(memory: types.AgentContext, query: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions): types.QueryResponse;
}
export declare const b: BamlSyncClient;
export {};