mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-14 15:48:15 +00:00
feat(search-types0: add reasoning action
This commit is contained in:
@@ -84,7 +84,15 @@ export type DoneActionOutput = {
|
|||||||
type: 'done';
|
type: 'done';
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ActionOutput = SearchActionOutput | DoneActionOutput;
|
export type ReasoningResearchAction = {
|
||||||
|
type: 'reasoning';
|
||||||
|
reasoning: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ActionOutput =
|
||||||
|
| SearchActionOutput
|
||||||
|
| DoneActionOutput
|
||||||
|
| ReasoningResearchAction;
|
||||||
|
|
||||||
export interface ResearchAction<
|
export interface ResearchAction<
|
||||||
TSchema extends z.ZodObject<any> = z.ZodObject<any>,
|
TSchema extends z.ZodObject<any> = z.ZodObject<any>,
|
||||||
@@ -98,8 +106,3 @@ export interface ResearchAction<
|
|||||||
additionalConfig: AdditionalConfig,
|
additionalConfig: AdditionalConfig,
|
||||||
) => Promise<ActionOutput>;
|
) => Promise<ActionOutput>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ActionConfig = {
|
|
||||||
type: string;
|
|
||||||
params: Record<string, any>;
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user