chat_with_assistant
Engage in real-time conversations with a specific AI assistant by sending messages through the VoiceAI-MCP-VAVicky server. Supports text or audio responses for interactive communication.
Instructions
Chat with a specific assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| audio | No | Enable audio response | |
| message | Yes | Message to send | |
| thread_id | Yes | Chat/Thread ID |
Implementation Reference
- index.js:595-602 (handler)The handler logic for the 'chat_with_assistant' tool within the executeTool method's switch statement. It constructs a POST request to the backend API with the assistant ID, message, thread ID, and optional audio flag.case 'chat_with_assistant': url = `${this.baseUrl}/assistants/${args.assistant_id}/chat?audio=${args.audio || false}`; method = 'POST'; body = { message: args.message, thread_id: args.thread_id }; break;
- index.js:302-310 (schema)The input schema defining parameters for the 'chat_with_assistant' tool: assistant_id, message, thread_id (required), and optional audio.type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] }
- index.js:299-311 (registration)The tool definition object in the listTools response that registers 'chat_with_assistant' with MCP, including name, description, and schema.name: 'chat_with_assistant', description: 'Chat with a specific assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, message: { type: 'string', description: 'Message to send' }, thread_id: { type: 'string', description: 'Chat/Thread ID' }, audio: { type: 'boolean', description: 'Enable audio response', default: false } }, required: ['assistant_id', 'message', 'thread_id'] } },