Saltar al contenido principal

Function: useInitAgent()

useInitAgent(config?): void

Defined in: src/core/services/agent.service.ts:214

Registers the AI provider for the Kitt assistant.

apiKey falls back to process.env.DASHSCOPE_API_KEY; baseUrl, model and systemPrompt fall back to the kittPreset defaults.

Parameters

config?

Partial<AiProviderConfig> = {}

Partial provider configuration.

Returns

void

Example

import { useInitAgent } from "katanakit-js";

useInitAgent({
apiKey: process.env.DASHSCOPE_API_KEY,
model: "qwen3.8-max",
});