"""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 GenerateResponseRequestRetrievalStrategyCorrectiveRetrievalTypedDict(TypedDict):
    r"""Enable corrective retrieval with a fallback (e.g., web search)"""

    enabled: NotRequired[bool]
    fallback: NotRequired[str]
    r"""The type of fallback method to use (e.g., web_search)"""


class GenerateResponseRequestRetrievalStrategyCorrectiveRetrieval(BaseModel):
    r"""Enable corrective retrieval with a fallback (e.g., web search)"""

    enabled: Optional[bool] = None

    fallback: Optional[str] = None
    r"""The type of fallback method to use (e.g., web_search)"""
