
import { ActionContent, ActionType } from "@/redux/currentApp/action/interface"
import { TransformerActionInitial } from "./transformerAction"
import { RestAPIActionInitial } from "./restapiAction"
import { GlobalDataActionContent } from "../../PublicTypes/action/globalData"
export type RouterParams = { key: string, value: string }[]
export interface RouterActionInitialType {
  pageName: string,
  params?:RouterParams
}
export const RouterActionInitial: RouterActionInitialType = {
  pageName: "",
}
const GlobalDataActionInitial: GlobalDataActionContent = {
  initialValue: "",
}

export function getInitialContent(actionType: ActionType): ActionContent {
  switch (actionType) {
    case "globalData":
      return GlobalDataActionInitial;
    case "restapi":
      return RestAPIActionInitial
    case "transformer":
      return TransformerActionInitial
    case "setRouter":
      return RouterActionInitial
    default:
      return {} as ActionContent
  }
}

// export function getInitialAgentContent(agent: Agent): BaseAiAgentActionContent {
//   return {
//     agentType: agent.agentType,
//     model: agent.model,
//     variables: agent.variables,
//     input: "",
//     modelConfig: {
//       stream: false,
//     },
//   }
// }
