Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

647 B
Raw Blame
import {
  AgentIcon,
  ColorName,
  CreateAgentRequest,
  DEFAULT_AGENT_MAX_STEPS,
} from '@activepieces/shared';
import { t } from 'i18next';

function blankAgentRequest({
  projectId,
  folderId,
}: {
  projectId: string;
  folderId?: string | null;
}): CreateAgentRequest {
  return {
    projectId,
    displayName: t('New agent'),
    description: null,
    icon: AgentIcon.BOT,
    color: ColorName.PURPLE,
    folderId: folderId ?? null,
    draft: {
      instructions: '',
      maxSteps: DEFAULT_AGENT_MAX_STEPS,
      tools: [],
      structuredOutput: [],
    },
  };
}

export const blankAgentUtils = { request: blankAgentRequest };