setPostPromptLlmParams

View as MarkdownOpen in Claude

Merge LLM-specific parameters into the post-prompt configuration. Accepts the same parameters as setPromptLlmParams().

Parameters

params
Record<string, unknown>Required

Key-value LLM parameters to merge.

Returns

AgentBase — Returns this for method chaining.

Example

import { AgentBase } from '@signalwire/sdk';
const agent = new AgentBase({ name: 'support', route: '/support' });
agent.setPromptText('You are a helpful customer support agent.');
agent.setPostPrompt('Summarize this call as JSON with intent and resolution.');
agent.setPostPromptLlmParams({
model: 'gpt-4o-mini',
temperature: 0.3,
});
await agent.serve();