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

from __future__ import annotations
from .askindexrequest import AskIndexRequest, AskIndexRequestTypedDict
from duckyai.types import BaseModel
from duckyai.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class AskIndexRequest1TypedDict(TypedDict):
    index_name: str
    r"""The name of the index to ask a question to"""
    ask_index_request: AskIndexRequestTypedDict


class AskIndexRequest1(BaseModel):
    index_name: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The name of the index to ask a question to"""

    ask_index_request: Annotated[
        AskIndexRequest,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]
