diff --git a/package-lock.json b/package-lock.json index 012b7ad..0977d3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@elevenlabs/cli", - "version": "0.5.5", + "version": "0.5.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@elevenlabs/cli", - "version": "0.5.5", + "version": "0.5.6", "license": "MIT", "dependencies": { "@elevenlabs/elevenlabs-js": "^2.41.1", diff --git a/package.json b/package.json index 035a4e0..ee214dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elevenlabs/cli", - "version": "0.5.5", + "version": "0.5.6", "description": "CLI tool to manage ElevenLabs agents", "type": "module", "keywords": [ diff --git a/src/agents/__tests__/templates.test.ts b/src/agents/__tests__/templates.test.ts new file mode 100644 index 0000000..bc8353b --- /dev/null +++ b/src/agents/__tests__/templates.test.ts @@ -0,0 +1,17 @@ +import { getTemplateByName } from "../templates"; + +describe("agent templates", () => { + it.each([ + "default", + "voice-only", + "text-only", + "customer-service", + "assistant" + ])("uses Scribe Realtime for the %s template", (templateName) => { + const template = getTemplateByName("Test Agent", templateName); + + expect(template.conversation_config.asr).toMatchObject({ + provider: "scribe_realtime" + }); + }); +}); diff --git a/src/agents/templates.ts b/src/agents/templates.ts index 62dcbaa..f2bd88d 100644 --- a/src/agents/templates.ts +++ b/src/agents/templates.ts @@ -70,7 +70,7 @@ export function getDefaultAgentTemplate(name: string): AgentConfig { conversation_config: { asr: { quality: "high", - provider: "elevenlabs", + provider: "scribe_realtime", user_input_audio_format: "pcm_16000", keywords: [] }, @@ -407,4 +407,4 @@ export function getTemplateByName(name: string, templateType: string = "default" } return templateFunctions[templateType](name); -} \ No newline at end of file +}