# Variable AgentActionSchema`Const`

AgentActionSchema: ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodLiteral<"SummarizeIssue">;
summary: ZodString;
sources: ZodArray<
ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodLiteral<"repoFile">;
path: ZodString;
line: ZodOptional<ZodNumber>;
commit: ZodOptional<ZodString>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"issueComment">;
issueNumber: ZodNumber;
commentId: ZodNumber;
author: ZodString;
authorTrustTier: ZodEnum<
{ "1": ...; "2": ...; "3": ...; "4": ... },
>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"ciResult">;
runId: ZodNumber;
status: ZodEnum<{ pass: ...; fail: ... }>;
job: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"policyDoc">;
path: ZodString;
section: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"maintainerCommand">;
username: ZodString;
commentId: ZodNumber;
},
$strip,
>,
],
"type",
>,
>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"ProposeLabels">;
labels: ZodArray<ZodString>;
reason: ZodString;
sources: ZodArray<
ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodLiteral<"repoFile">;
path: ZodString;
line: ZodOptional<ZodNumber>;
commit: ZodOptional<ZodString>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"issueComment">;
issueNumber: ZodNumber;
commentId: ZodNumber;
author: ZodString;
authorTrustTier: ZodEnum<
{ "1": ...; "2": ...; "3": ...; "4": ... },
>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"ciResult">;
runId: ZodNumber;
status: ZodEnum<{ pass: ...; fail: ... }>;
job: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"policyDoc">;
path: ZodString;
section: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"maintainerCommand">;
username: ZodString;
commentId: ZodNumber;
},
$strip,
>,
],
"type",
>,
>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"DraftReply">;
body: ZodString;
requiresApproval: ZodLiteral<true>;
sources: ZodArray<
ZodDiscriminatedUnion<
[
ZodObject<
{
type: ZodLiteral<"repoFile">;
path: ZodString;
line: ZodOptional<ZodNumber>;
commit: ZodOptional<ZodString>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"issueComment">;
issueNumber: ZodNumber;
commentId: ZodNumber;
author: ZodString;
authorTrustTier: ZodEnum<
{ "1": ...; "2": ...; "3": ...; "4": ... },
>;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"ciResult">;
runId: ZodNumber;
status: ZodEnum<{ pass: ...; fail: ... }>;
job: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"policyDoc">;
path: ZodString;
section: ZodString;
},
$strip,
>,
ZodObject<
{
type: ZodLiteral<"maintainerCommand">;
username: ZodString;
commentId: ZodNumber;
},
$strip,
>,
],
"type",
>,
>;
},
$strip,
>,
],
"type",
> = ...

Discriminated union of all valid agent actions. This is the ONLY schema agents may emit when processing untrusted input.

- Defined in packages/nexus-agents/src/security/action-schema.ts:179