feat: share the tool catalog with voice

This commit is contained in:
Sameh Khamis committed 2026-10-01 13:52:36 -07:00
1 parent 0953ebb026
commit 1a03e7483d
19 files changed
+288 -15

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/**
* The voice session's tools for the standalone server: the app actions plus
* Core's catalog queries, which the browser runs through the same catalog.
* Links to the app are left out, since voice runs inside it.
*/
import { coreTools, toFunctionTools } from '../../src/tools/index.js';
import { realtimeSessionTools } from '../providers/openai/tools.js';
export const VOICE_EXCLUDED_QUERIES = Object.freeze(['open_in_gods_eye_view']);
export function standaloneVoiceTools() {
return realtimeSessionTools(
toFunctionTools(coreTools, { exclude: VOICE_EXCLUDED_QUERIES }),
);
}