UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

29 lines 1.28 kB
import { type ZodType } from 'zod/v4'; import type { OllamaConfig } from '../models/GptConfig'; import type { AssistantMessage, GptMessage, ProposedToolCallsMessage, StructuredOutputMessage } from '../models/GptMessage'; import type { ToolOption } from './GptClient'; import { GptClient } from './GptClient'; /** * A GPT client for Ollama, a local LLM runner that exposes an OpenAI-compatible API. * Delegates to {@link OpenAiGptClient} for request handling, with Ollama-specific * overrides for ping and structured output. */ export declare class OllamaGptClient extends GptClient { private static readonly DEFAULT_API_URL; private readonly delegate; private readonly apiUrl; constructor(ollamaConfig: OllamaConfig); ping(options?: { signal?: AbortSignal; }): Promise<void>; getMessage(messages: GptMessage[], options?: { signal?: AbortSignal; }): Promise<AssistantMessage>; getStructuredOutput<T>(messages: GptMessage[], zodSchema: ZodType<T>, options?: { signal?: AbortSignal; }): Promise<StructuredOutputMessage<T>>; getToolCalls(messages: GptMessage[], tools: ToolOption[], options?: { signal?: AbortSignal; }): Promise<ProposedToolCallsMessage>; } //# sourceMappingURL=OllamaGptClient.d.ts.map