# generated by datamodel-codegen:
#   filename:  get-products-response.json
#   timestamp: 2025-11-15T22:03:55+00:00

from __future__ import annotations

from typing import Annotated, Any

from adcp.types.base import AdCPBaseModel
from pydantic import ConfigDict, Field

from . import error, product


class GetProductsResponse(AdCPBaseModel):
    model_config = ConfigDict(
        extra="forbid",
    )
    context: Annotated[
        dict[str, Any] | None,
        Field(
            description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers."
        ),
    ] = None
    errors: Annotated[
        list[error.Error] | None,
        Field(description="Task-specific errors and warnings (e.g., product filtering issues)"),
    ] = None
    products: Annotated[list[product.Product], Field(description="Array of matching products")]
