"""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 GenerateResponseRequestRetrievalStrategyContextualCompressionTypedDict(TypedDict):
    enabled: NotRequired[bool]
    filter_type: NotRequired[str]


class GenerateResponseRequestRetrievalStrategyContextualCompression(BaseModel):
    enabled: Optional[bool] = None

    filter_type: Optional[str] = None
