UNPKG

@autobe/agent

Version:

AI backend server code generator

32 lines (29 loc) 815 B
import { IAgenticaHistoryJson } from "@agentica/core"; import { v4 } from "uuid"; import { AutoBeSystemPromptConstant } from "../../constants/AutoBeSystemPromptConstant"; export const transformAnalyzeReviewerHistories = (input: { /** Total file names */ files: Record<string, string>; }): Array< IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage > => { return [ { id: v4(), created_at: new Date().toISOString(), type: "assistantMessage", text: [ "Below are all of the files.", "```json", JSON.stringify(input.files), "```", ].join("\n"), }, { id: v4(), created_at: new Date().toISOString(), type: "systemMessage", text: AutoBeSystemPromptConstant.ANALYZE_REVIEWER, }, ]; };