from datetime import date, datetime  # noqa: F401
from typing import Dict, List  # noqa: F401

from timestep.api.openai.v1 import util
from timestep.api.openai.v1.models.base_model import Model
from timestep.api.openai.v1.models.run_step_details_tool_calls_code_object_code_interpreter_outputs_inner import \
    RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner  # noqa: E501


class RunStepDetailsToolCallsCodeObjectCodeInterpreter(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, input=None, outputs=None):  # noqa: E501
        """RunStepDetailsToolCallsCodeObjectCodeInterpreter - a model defined in OpenAPI

        :param input: The input of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.  # noqa: E501
        :type input: str
        :param outputs: The outputs of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.  # noqa: E501
        :type outputs: List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]
        """
        self.openapi_types = {
            'input': str,
            'outputs': List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]
        }

        self.attribute_map = {
            'input': 'input',
            'outputs': 'outputs'
        }

        self._input = input
        self._outputs = outputs

    @classmethod
    def from_dict(cls, dikt) -> 'RunStepDetailsToolCallsCodeObjectCodeInterpreter':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The RunStepDetailsToolCallsCodeObject_code_interpreter of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.  # noqa: E501
        :rtype: RunStepDetailsToolCallsCodeObjectCodeInterpreter
        """
        return util.deserialize_model(dikt, cls)

    @property
    def input(self) -> str:
        """Gets the input of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.

        The input to the Code Interpreter tool call.  # noqa: E501

        :return: The input of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.
        :rtype: str
        """
        return self._input

    @input.setter
    def input(self, input: str):
        """Sets the input of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.

        The input to the Code Interpreter tool call.  # noqa: E501

        :param input: The input of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.
        :type input: str
        """
        if input is None:
            raise ValueError("Invalid value for `input`, must not be `None`")  # noqa: E501

        self._input = input

    @property
    def outputs(self) -> List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]:
        """Gets the outputs of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.

        The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.  # noqa: E501

        :return: The outputs of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.
        :rtype: List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]
        """
        return self._outputs

    @outputs.setter
    def outputs(self, outputs: List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]):
        """Sets the outputs of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.

        The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.  # noqa: E501

        :param outputs: The outputs of this RunStepDetailsToolCallsCodeObjectCodeInterpreter.
        :type outputs: List[RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsInner]
        """
        if outputs is None:
            raise ValueError("Invalid value for `outputs`, must not be `None`")  # noqa: E501

        self._outputs = outputs
