feat(widgets): use new classifier, implement new widget executor, delete registry

This commit is contained in:
ItzCrazyKns
2025-12-02 11:52:40 +05:30
parent 6899b49ca0
commit 046f159528
10 changed files with 204 additions and 222 deletions

View File

@@ -26,7 +26,7 @@ const webSearchAction: ResearchAction<typeof actionSchema> = {
name: 'web_search',
description: actionDescription,
schema: actionSchema,
enabled: (config) => config.classification.intents.includes('web_search'),
enabled: (config) => true,
execute: async (input, _) => {
let results: Chunk[] = [];

View File

@@ -61,9 +61,7 @@ class Researcher {
maxIteration,
);
const actionStream = input.config.llm.streamObject<
z.infer<typeof schema>
>({
const actionStream = input.config.llm.streamObject<typeof schema>({
messages: [
{
role: 'system',