Variable agentRoutineSchemaConst
agentRoutineSchema: ZodObject<
{
acl: ZodOptional<
ZodObject<
{
add: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<ZodString, "many">;
principal: ZodOptional<ZodString>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{ actions: string[]; principal?: string; principal_type: string },
{ actions: string[]; principal?: string; principal_type: string },
>,
"many",
>,
>;
grants: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<ZodString, "many">;
principal: ZodOptional<ZodString>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{ actions: string[]; principal?: string; principal_type: string },
{ actions: string[]; principal?: string; principal_type: string },
>,
"many",
>,
>;
remove: ZodOptional<
ZodArray<
ZodObject<
{ principal: ZodOptional<ZodString>; principal_type: ZodString },
"strip",
ZodTypeAny,
{ principal?: string; principal_type: string },
{ principal?: string; principal_type: string },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
},
{
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
},
>,
>;
agent: ZodOptional<ZodString>;
app: ZodOptional<ZodString>;
config: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
description: ZodOptional<ZodString>;
event_config: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
event_type: ZodOptional<ZodString>;
handler_type: ZodOptional<ZodString>;
id: ZodString;
last_applied_template_config: ZodOptional<ZodString>;
lookup_key: ZodOptional<ZodString>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
name: ZodOptional<ZodString>;
preset_config: ZodOptional<
ZodObject<
{
instructions: ZodOptional<ZodString>;
llm: ZodOptional<
ZodObject<
{ model: ZodOptional<ZodString> },
"strip",
ZodTypeAny,
{ model?: string },
{ model?: string },
>,
>;
session_mode: ZodOptional<ZodString>;
session_scope: ZodOptional<ZodString>;
structured_message_template_ids: ZodOptional<
ZodArray<ZodString, "many">,
>;
},
"strip",
ZodTypeAny,
{
instructions?: string;
llm?: { model?: string };
session_mode?: string;
session_scope?: string;
structured_message_template_ids?: string[];
},
{
instructions?: string;
llm?: { model?: string };
session_mode?: string;
session_scope?: string;
structured_message_template_ids?: string[];
},
>,
>;
preset_name: ZodOptional<ZodString>;
schedule: ZodOptional<ZodString>;
script: ZodOptional<ZodString>;
status: ZodOptional<ZodString>;
steps: ZodOptional<ZodArray<ZodRecord<ZodString, ZodUnknown>, "many">>;
trigger_context: ZodOptional<ZodString>;
updated_at: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
acl?: {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
};
agent?: string;
app?: string;
config?: string;
created_at?: string;
description?: string;
event_config?: Record<string, unknown>;
event_type?: string;
handler_type?: string;
id: string;
last_applied_template_config?: string;
lookup_key?: string;
metadata?: Record<string, unknown>;
name?: string;
preset_config?: {
instructions?: string;
llm?: { model?: string };
session_mode?: string;
session_scope?: string;
structured_message_template_ids?: string[];
};
preset_name?: string;
schedule?: string;
script?: string;
status?: string;
steps?: Record<string, unknown>[];
trigger_context?: string;
updated_at?: string;
},
{
acl?: {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
};
agent?: string;
app?: string;
config?: string;
created_at?: string;
description?: string;
event_config?: Record<string, unknown>;
event_type?: string;
handler_type?: string;
id: string;
last_applied_template_config?: string;
lookup_key?: string;
metadata?: Record<string, unknown>;
name?: string;
preset_config?: {
instructions?: string;
llm?: { model?: string };
session_mode?: string;
session_scope?: string;
structured_message_template_ids?: string[];
};
preset_name?: string;
schedule?: string;
script?: string;
status?: string;
steps?: Record<string, unknown>[];
trigger_context?: string;
updated_at?: string;
},
> = ...
Runtime validator for AgentRoutine.