# 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 LarkAgentContext(object):
    _types = {
        "active_chat_id": str,
    }

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

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


class LarkAgentContextBuilder(object):
    def __init__(self) -> None:
        self._lark_agent_context = LarkAgentContext()

    def active_chat_id(self, active_chat_id: str) -> "LarkAgentContextBuilder":
        self._lark_agent_context.active_chat_id = active_chat_id
        return self

    def build(self) -> "LarkAgentContext":
        return self._lark_agent_context
