From 5e3001756b0d17e1808119c4140236d2fae4b680 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 6 Dec 2025 15:31:57 +0530 Subject: [PATCH] feat(search-types0: add reasoning action --- src/lib/agents/search/types.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/lib/agents/search/types.ts b/src/lib/agents/search/types.ts index 589fa2d..e83ac7d 100644 --- a/src/lib/agents/search/types.ts +++ b/src/lib/agents/search/types.ts @@ -84,7 +84,15 @@ export type DoneActionOutput = { type: 'done'; }; -export type ActionOutput = SearchActionOutput | DoneActionOutput; +export type ReasoningResearchAction = { + type: 'reasoning'; + reasoning: string; +}; + +export type ActionOutput = + | SearchActionOutput + | DoneActionOutput + | ReasoningResearchAction; export interface ResearchAction< TSchema extends z.ZodObject = z.ZodObject, @@ -98,8 +106,3 @@ export interface ResearchAction< additionalConfig: AdditionalConfig, ) => Promise; } - -export type ActionConfig = { - type: string; - params: Record; -};