feat(plugins): add web search runtime capability

This commit is contained in:
Peter Steinberger
2026-03-16 21:30:41 -07:00
parent 6d6825ea18
commit 4bba2888e7
11 changed files with 409 additions and 165 deletions

View File

@@ -11,6 +11,7 @@ import {
transcribeAudioFile,
} from "../../media-understanding/runtime.js";
import { listSpeechVoices, textToSpeech, textToSpeechTelephony } from "../../tts/tts.js";
import { listWebSearchProviders, runWebSearch } from "../../web-search/runtime.js";
import { createRuntimeAgent } from "./runtime-agent.js";
import { createRuntimeChannel } from "./runtime-channel.js";
import { createRuntimeConfig } from "./runtime-config.js";
@@ -147,6 +148,10 @@ export function createPluginRuntime(_options: CreatePluginRuntimeOptions = {}):
describeVideoFile,
transcribeAudioFile,
},
webSearch: {
listProviders: listWebSearchProviders,
search: runWebSearch,
},
stt: { transcribeAudioFile },
tools: createRuntimeTools(),
channel: createRuntimeChannel(),