/************************************************************************************************* 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, Image, Collector } from "@boundaryml/baml"; import { BamlStream } from "@boundaryml/baml"; import type { RecursivePartialNull as MovedRecursivePartialNull } from "./types"; import type { partial_types } from "./partial_types"; import type { BugFailureClassification, CheckNoContext, MisalignmentClassification, PartialRecipe, TestStep } from "./types"; import type TypeBuilder from "./type_builder"; import { AsyncHttpRequest, AsyncHttpStreamRequest } from "./async_request"; import { LlmResponseParser, LlmStreamParser } from "./parser"; /** * @deprecated Use RecursivePartialNull from 'baml_client/types' instead. */ export type RecursivePartialNull = MovedRecursivePartialNull; type BamlCallOptions = { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }; export declare class BamlAsyncClient { private runtime; private ctxManager; private streamClient; private httpRequest; private httpStreamRequest; private llmResponseParser; private llmStreamParser; private bamlOptions; constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager, bamlOptions?: BamlCallOptions); withOptions(bamlOptions: BamlCallOptions): BamlAsyncClient; get stream(): BamlStreamClient; get request(): AsyncHttpRequest; get streamRequest(): AsyncHttpStreamRequest; get parse(): LlmResponseParser; get parseStream(): LlmStreamParser; ClassifyCheckFailure(screenshot: Image, check: string, previousActions: string[], __baml_options__?: BamlCallOptions): Promise; CreatePartialRecipe(screenshot: Image, step: TestStep, previousActions: string[], __baml_options__?: BamlCallOptions): Promise; EvaluateCheck(screenshot: Image, check: string, __baml_options__?: BamlCallOptions): Promise; LocateTarget(screenshot: Image, target: string, __baml_options__?: BamlCallOptions): Promise; RemoveImplicitCheckContext(screenshot: Image, check: string, previousActions: string[], __baml_options__?: BamlCallOptions): Promise; } declare class BamlStreamClient { private runtime; private ctxManager; private bamlOptions; constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager, bamlOptions?: BamlCallOptions); ClassifyCheckFailure(screenshot: Image, check: string, previousActions: string[], __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }): BamlStream<((partial_types.BugFailureClassification | null) | (partial_types.MisalignmentClassification | null)), BugFailureClassification | MisalignmentClassification>; CreatePartialRecipe(screenshot: Image, step: TestStep, previousActions: string[], __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }): BamlStream; EvaluateCheck(screenshot: Image, check: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }): BamlStream; LocateTarget(screenshot: Image, target: string, __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }): BamlStream; RemoveImplicitCheckContext(screenshot: Image, check: string, previousActions: string[], __baml_options__?: { tb?: TypeBuilder; clientRegistry?: ClientRegistry; collector?: Collector | Collector[]; }): BamlStream; } export declare const b: BamlAsyncClient; export {};