Skip to main content

setLocalAgent

client.llm.setLocalAgent(data: LLMLocalAgentConfig): Promise<unknown>

Configures the LLM settings for a specific local agent.

Allows overriding the default LLM configuration on a per-agent basis, so different agents can use different models or provider settings tailored to their tasks.

Parameters

ParameterTypeRequiredDescription
dataLLMLocalAgentConfigYesThe agent-specific LLM configuration

Returns

Promise<unknown> — A promise that resolves when the agent configuration has been saved

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.llm.setLocalAgent(/* LLMLocalAgentConfig */);
console.log(result);