# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .tool_definition_integration import ToolDefinitionIntegration


class ComposioToolDefinition(UniversalBaseModel):
    """
    Serializer for Composio tool definition response.
    """

    provider: typing.Literal["COMPOSIO"] = "COMPOSIO"
    integration: ToolDefinitionIntegration
    name: str
    label: str
    description: str
    input_parameters: typing.Dict[str, typing.Optional[typing.Any]]
    output_parameters: typing.Dict[str, typing.Optional[typing.Any]]

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
