"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from duckyai.types import BaseModel
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class GenerateResponseRequestSelfCorrectionStrategyTypedDict(TypedDict):
    r"""Configuration for self-correction strategy on the generated result"""

    enabled: NotRequired[bool]
    check_hallucinations: NotRequired[bool]
    fallback_to_web_search: NotRequired[bool]


class GenerateResponseRequestSelfCorrectionStrategy(BaseModel):
    r"""Configuration for self-correction strategy on the generated result"""

    enabled: Optional[bool] = None

    check_hallucinations: Optional[bool] = None

    fallback_to_web_search: Optional[bool] = None
