import type { Embeddings } from '@langchain/core/embeddings'; import { type ComputedRef } from '@vue/reactivity'; import type { ChatLunaChatPrompt } from '../chain/prompt'; import type { ChatLunaBaseEmbeddings, ChatLunaChatModel } from '../platform/model'; import type { ChatLunaTool } from '../platform/types'; import type { PresetTemplate } from '../prompt'; import type { ToolMask } from './types'; export interface CreateChatLunaAgentOptions { id?: string; name?: string; description?: string; model: string | ChatLunaChatModel | ComputedRef; embeddings?: string | ChatLunaBaseEmbeddings | ComputedRef; tools?: string[] | ChatLunaTool[] | ComputedRef; mode?: 'tool-calling' | 'react'; preset?: string | ComputedRef; system?: string; prompt?: ChatLunaChatPrompt; maxSteps?: number; handleParsingErrors?: boolean | string | ((e: Error) => string); instructions?: string | ComputedRef; returnIntermediateSteps?: boolean; toolMask?: ToolMask; } export declare function resolveAgentModel(input: CreateChatLunaAgentOptions['model'], createChatModel: (fullModelName: string) => Promise>): Promise>; export declare function resolveAgentEmbeddings(input: CreateChatLunaAgentOptions['embeddings'], createEmbeddings: (fullModelName: string) => Promise>, fallback: string): Promise; export declare function resolveAgentTools(input: CreateChatLunaAgentOptions['tools'], getTool: (name: string) => ChatLunaTool): ComputedRef; export declare function resolveAgentPreset(options: CreateChatLunaAgentOptions, getPreset: (name: string) => ComputedRef): { preset: ComputedRef; instructions: ComputedRef; };