# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class ModelConfig(object):
    _types = {
        "model_name": str,
    }

    def __init__(self, d=None):
        self.model_name: Optional[str] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "ModelConfigBuilder":
        return ModelConfigBuilder()


class ModelConfigBuilder(object):
    def __init__(self) -> None:
        self._model_config = ModelConfig()

    def model_name(self, model_name: str) -> "ModelConfigBuilder":
        self._model_config.model_name = model_name
        return self

    def build(self) -> "ModelConfig":
        return self._model_config
