mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
src/tools/surfaces.js lists the tools a surface leaves out, and the MCP server, the voice session's tool list and the browser catalog voice calls all filter through it. Voice leaves out tools that answer with images, link to the app, or repeat what its app actions already answer.
19 lines
503 B
JavaScript
19 lines
503 B
JavaScript
/**
|
|
* The voice session's tools for the standalone server: the app actions plus
|
|
* the catalog tools voice offers (see src/tools/surfaces.js), which the
|
|
* browser runs through the same catalog.
|
|
*/
|
|
|
|
import {
|
|
coreTools,
|
|
toFunctionTools,
|
|
toolsForSurface,
|
|
} from '../../src/tools/index.js';
|
|
import { realtimeSessionTools } from '../providers/openai/tools.js';
|
|
|
|
export function standaloneVoiceTools() {
|
|
return realtimeSessionTools(
|
|
toFunctionTools(toolsForSurface(coreTools, 'voice')),
|
|
);
|
|
}
|