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

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

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


class MyAiCallbackActionValueBuilder(object):
    def __init__(self) -> None:
        self._my_ai_callback_action_value = MyAiCallbackActionValue()

    def body(self, body: str) -> "MyAiCallbackActionValueBuilder":
        self._my_ai_callback_action_value.body = body
        return self

    def handle(self, handle: str) -> "MyAiCallbackActionValueBuilder":
        self._my_ai_callback_action_value.handle = handle
        return self

    def build(self) -> "MyAiCallbackActionValue":
        return self._my_ai_callback_action_value
