import { PromptTemplate } from '../../../../template.js'; import { B as BaseRunner, b as ReActAgentRunnerLLMInput, c as ReActAgentRunnerToolInput } from '../../../../agent-s3uhvAba.js'; import { ReActAgentRunIteration, ReActAgentRunInput, ReActAgentParserInput } from '../../types.js'; import { AnyTool } from '../../../../tools/base.js'; import { LinePrefixParser } from '../../../../parsers/linePrefix.js'; import { z } from 'zod'; import { UserMessage, SystemMessage } from '../../../../backend/message.js'; import { BaseMemory } from '../../../../memory/base.js'; import '../../../../errors.js'; import '../../../../internals/types.js'; import '../../../../internals/helpers/guards.js'; import '../../../../internals/serializable.js'; import 'ajv'; import '../../../../context.js'; import '../../../../emitter-kHxkUxco.js'; import '../../../../internals/helpers/promise.js'; import '../../../../base-BjzyQ8k6.js'; import '../../../../chat-CfTNfR60.js'; import 'promise-based-task'; import '../../../../cache/base.js'; import '../../../../backend/constants.js'; import '../../../../logger/logger.js'; import 'pino'; import 'ai'; import '../../../../internals/helpers/counter.js'; import '../../prompts.js'; import '../../../../parsers/field.js'; import '@streamparser/json'; import 'jsonrepair/stream'; import '../../../../internals/helpers/schema.js'; import 'zod-to-json-schema'; import 'node_modules/remeda/dist/ToString-DKW-jYvM.js'; import '../../../../parsers/errors.js'; declare class DefaultRunner extends BaseRunner { protected useNativeToolCalling: boolean; get defaultTemplates(): { system: PromptTemplate; tools: z.ZodArray, z.objectInputType<{ name: z.ZodString; description: z.ZodString; schema: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; createdAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { instructions: string; tools: z.objectOutputType<{ name: z.ZodString; description: z.ZodString; schema: z.ZodString; }, z.ZodTypeAny, "passthrough">[]; createdAt?: string | null | undefined; }, { tools: z.objectInputType<{ name: z.ZodString; description: z.ZodString; schema: z.ZodString; }, z.ZodTypeAny, "passthrough">[]; instructions?: string | undefined; createdAt?: string | null | undefined; }>>; assistant: PromptTemplate>; toolName: z.ZodOptional>; toolInput: z.ZodOptional>; toolOutput: z.ZodOptional>; finalAnswer: z.ZodOptional>; }, "strip", z.ZodTypeAny, { thought?: string[] | undefined; toolName?: string[] | undefined; toolInput?: string[] | undefined; toolOutput?: string[] | undefined; finalAnswer?: string[] | undefined; }, { thought?: string[] | undefined; toolName?: string[] | undefined; toolInput?: string[] | undefined; toolOutput?: string[] | undefined; finalAnswer?: string[] | undefined; }>>; user: PromptTemplate; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ input: z.ZodString; meta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ input: z.ZodString; meta: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ createdAt: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>>; schemaError: PromptTemplate, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; toolNotFoundError: PromptTemplate, z.objectInputType<{ name: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ tools: z.ZodArray, z.objectInputType<{ name: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ tools: z.ZodArray, z.objectInputType<{ name: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; }, z.ZodTypeAny, "passthrough">>>; toolError: PromptTemplate, z.objectInputType<{ reason: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; toolInputError: PromptTemplate, z.objectInputType<{ reason: z.ZodString; }, z.ZodTypeAny, "passthrough">>>; userEmpty: PromptTemplate, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; toolNoResultError: PromptTemplate>; }; llm({ signal, meta, emitter }: ReActAgentRunnerLLMInput): Promise; tool({ state, signal, meta, emitter }: ReActAgentRunnerToolInput): Promise<{ success: boolean; output: string; }>; protected get renderers(): { user: { message: ({ prompt }: ReActAgentRunInput) => UserMessage | undefined; }; system: { variables: { tools: () => Promise<{ name: string; description: string; schema: string; }[]>; }; message: () => Promise; }; }; protected initMemory({ prompt }: ReActAgentRunInput): Promise; protected createParser(tools: AnyTool[]): { readonly parser: LinePrefixParser; }; } export { DefaultRunner };