JokeSkill

View as MarkdownOpen in Claude

Tell jokes from a built-in collection. Includes general, programming, and dad joke categories. No external API required.

Class: JokeSkill

Tools: tell_joke (configurable via tool_name)

Env vars: None

tool_name
stringDefaults to tell_joke

Custom name for the joke tool. Overrides the default SWAIG function name.

Plus the base parameters (swaig_fields, skip_prompt).

1import { AgentBase, JokeSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4agent.setPromptText('You are a helpful assistant.');
5await agent.addSkill(new JokeSkill());
6
7agent.run();