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

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