import { ChatModel, type Msg } from '../index.js'; import { type Agent, type CtxVal, type SwarmResponse } from './types.js'; export declare class Swarm { chatModel: ChatModel; defaultModel: string; constructor(args?: { chatModel?: ChatModel; }); run(args: { agent: Agent; messages: Msg[]; ctx?: CtxVal; modelOverride?: string; maxTurns?: number; }): Promise; private getChatCompletion; /** * Handle messages that require calling functions. * @returns An array of the new messages from the function calls * Note: Does not include args.message in the returned array */ private handleToolCalls; /** Call a function and return the result. */ private callFunction; /** Create a map of function names to functions for easy lookup. */ private getFuncMap; }