import { UseAssistantProps } from '../hooks/use-assistant'; /** * Creates an AI assistant instance with the specified configuration * * @param props - Configuration properties for the assistant. See {@link UseAssistantProps} for more details. * @returns Promise that resolves to the configured assistant instance * * @example * ```ts * const assistant = await createAssistant({ * modelProvider: 'openai', * model: 'gpt-4', * apiKey: 'your-api-key', * instructions: 'You are a helpful assistant', * tools: [ * tool({ * description: 'Get the weather in a location', * parameters: z.object({ location: z.string() }), * execute: async ({ location }, option) => { * const getStation = options.context?.getStation; * const station = getStation ? await getStation(location) : null; * return { llmResult: `Weather in ${location} from station ${station}.` }; * }, * context: { * getStation: async (location) => { * return { station: '123' }; * }, * }, * component: WeatherComponent, * }) * ] * }); */ export declare function createAssistant(props: UseAssistantProps): Promise;