feat(search-types0: add reasoning action

This commit is contained in:
ItzCrazyKns
2025-12-06 15:31:57 +05:30
parent 4c4c1d1930
commit 5e3001756b

View File

@@ -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<any> = z.ZodObject<any>,
@@ -98,8 +106,3 @@ export interface ResearchAction<
additionalConfig: AdditionalConfig,
) => Promise<ActionOutput>;
}
export type ActionConfig = {
type: string;
params: Record<string, any>;
};