* feat: support auto create agent * feat: add prompts * chore: add number to call * fix typo --------- Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com> Co-authored-by: CarinaWolli <wollencarina@gmail.com>
26 lines
739 B
TypeScript
26 lines
739 B
TypeScript
import { z } from "zod";
|
|
|
|
export const ZCreateInputSchema = z.object({
|
|
name: z.string().optional(),
|
|
teamId: z.number().optional(),
|
|
workflowStepId: z.number().optional(),
|
|
templateWorkflowId: z.string().optional(),
|
|
generalPrompt: z.string().optional(),
|
|
beginMessage: z.string().optional(),
|
|
generalTools: z
|
|
.array(
|
|
z.object({
|
|
type: z.string(),
|
|
name: z.string(),
|
|
description: z.string().optional(),
|
|
cal_api_key: z.string().optional(),
|
|
event_type_id: z.number().optional(),
|
|
timezone: z.string().optional(),
|
|
})
|
|
)
|
|
.optional(),
|
|
voiceId: z.string().optional().default("11labs-Adrian"),
|
|
});
|
|
|
|
export type TCreateInputSchema = z.infer<typeof ZCreateInputSchema>;
|