# Variable TaskSchema`Const`

TaskSchema: ZodObject<
{
id: ZodString;
description: ZodString;
context: ZodObject<
{
workingDirectory: ZodOptional<ZodString>;
files: ZodOptional<ZodArray<ZodString>>;
history: ZodOptional<
ZodArray<
ZodObject<
{
role: ZodEnum<
{ system: "system"; user: "user"; assistant: "assistant" },
>;
content: ZodString;
timestamp: ZodString;
},
$strip,
>,
>,
>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
$strip,
>;
constraints: ZodOptional<
ZodObject<
{
maxDuration: ZodOptional<ZodNumber>;
maxTokens: ZodOptional<ZodNumber>;
},
$strip,
>,
>;
priority: ZodOptional<ZodNumber>;
},
$strip,
> = ...

Zod schema for validating Task objects.

- Defined in packages/nexus-agents/src/agents/agent-schemas.ts:13