from typing import Optional, Dict, Any

from pydantic import BaseModel, ConfigDict


class TestMetadata(BaseModel):
    model_config = ConfigDict(
        extra="forbid",
    )
    name: str
    kwargs: Optional[Dict[str, Any]] = {}
    namespace: Optional[str] = None
