allow cmpServer configuration in LLM

This commit is contained in:
Quan HL
2025-04-14 09:16:24 +07:00
parent 637431468d
commit 8c00eb02ed
2 changed files with 29 additions and 1 deletions
+11 -1
View File
@@ -447,7 +447,8 @@
"eventHook": "object|string",
"toolHook": "object|string",
"events": "array",
"llmOptions": "object"
"llmOptions": "object",
"mcpServer": "#mcpServer"
},
"required": [
"vendor",
@@ -455,6 +456,15 @@
"llmOptions"
]
},
"mcpServer": {
"properties": {
"url": "string",
"auth": "object"
},
"required": [
"url"
]
},
"message": {
"properties": {
"id": "string",
+18
View File
@@ -522,6 +522,24 @@ test("validate correct verbs", async (t) => {
},
"dual_streams": true,
"timeLimit" : 10
},
{
"verb": "llm",
"vendor": 'ultravox',
"model": 'fixie-ai/ultravox',
"auth": {
"apiKey": "sk-1234567890abcdefg"
},
"llmOptions": {
firstSpeaker: 'FIRST_SPEAKER_AGENT',
},
"mcpServer": {
url: 'https://mcp.example.com',
auth: {
username: 'username',
password: 'password'
}
}
}
];
try {