Skip to content

Type Alias: SegmentPolicy

Makaio Framework


Makaio Framework / contracts / SegmentPolicy

SegmentPolicy = z.infer<typeof SegmentPolicySchema>

Defined in: ../../../packages/contracts/src/session/schemas/lifecycle-events.ts:42

Inferred type for SegmentPolicySchema.

  • SegmentPolicy
    • z.infer<typeof SegmentPolicySchema>
      • typeof SegmentPolicySchema
type SegmentPolicy = {
fromMessageId: string;
toMessageId: string;
policy: 'verbatim' | 'summarize' | 'exclude';
stripReasoning?: boolean | undefined;
stripToolOutputs?: boolean | undefined;
overrides?: Record<string, 'exclude'> | undefined;
summaryText?: string | undefined;
};