feat(search-agent): add researcher, research actions

This commit is contained in:
ItzCrazyKns
2025-11-21 23:57:29 +05:30
parent 0df0114e76
commit 08feb18197
6 changed files with 313 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
import z from 'zod';
import { ResearchAction } from '../../types';
const doneAction: ResearchAction<any> = {
name: 'done',
description:
"Indicates that the research process is complete and no further actions are needed. Use this action when you have gathered sufficient information to answer the user's query.",
enabled: (_) => true,
schema: z.object({
type: z.literal('done'),
}),
execute: async (params, additionalConfig) => {
return {
type: 'done',
};
},
};
export default doneAction;