mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
feat: share the tool catalog with voice
This commit is contained in:
1 parent
0953ebb026
commit
1a03e7483d
19 files changed
+288
-15
No files matched your search
@@ -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 }),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user