Circle V2 API Docs
    Preparing search index...

    Variable agentFormFieldAnswerSchemaConst

    agentFormFieldAnswerSchema: ZodObject<
        {
            checkboxValue: ZodNullable<
                ZodEnum<
                    { checked: "checked"; unchecked: "unchecked"; unknown: "unknown" },
                >,
            >;
            citations: ZodArray<
                ZodObject<
                    {
                        documentId: ZodNullable<ZodString>;
                        documentType: ZodNullable<ZodString>;
                        name: ZodNullable<ZodString>;
                        page: ZodNullable<ZodNumber>;
                        quote: ZodString;
                    },
                    $strict,
                >,
            >;
            confidence: ZodNumber;
            listValues: ZodNullable<ZodArray<ZodString>>;
            outcome: ZodEnum<{ answered: "answered"; not_found: "not_found" }>;
            selectedOption: ZodNullable<ZodString>;
            subFieldValues: ZodArray<
                ZodObject<{ name: ZodString; value: ZodNullable<ZodString> }, $strict>,
            >;
            textValue: ZodNullable<ZodString>;
        },
        $strict,
    > = ...

    What the agent returns for ONE field. Flat and fully-nullable rather than a discriminated union: OpenAI strict structured output requires every key to be present, so a union of value shapes forces the model to satisfy branches that do not apply. The runner reads only the member that matches the field's type and ignores the rest.