kernel.callLLM
Call an LLM provider through the governed kernel.
SDK v2026.4.0
Kind: kernel method
Signature
kernel.callLLM(providerId: string, params: LlmCallParams): Promise<LlmResponse>Parameters
providerId: stringparams: LlmCallParams
Returns
Promise<LlmResponse>
Remarks
params.dlpPolicy can override DLP behavior for this single model call. Agent-wide defaults live on AgentConfig.dlp. Select managed Grok directly with await kernel.callLLM("xai", { model: "grok-4.5", prompt: "Review this patch." }). The xai provider and grok-4.5 model must be enabled for the organization.