"""
FlowiseAI — visual AI workflow automation plugin.

Themed wrapper around the CMDOP Python SDK (cmdop).
Docs: https://cmdop.com/docs/sdk/python/
"""

from __future__ import annotations

from cmdop import CMDOPClient, AsyncCMDOPClient
from cmdop.exceptions import (
    CMDOPError,
    ConnectionError,
    AuthenticationError,
    TimeoutError,
)

__version__ = "2026.3.12"
__all__ = ["FlowiseAI", "AsyncFlowiseAI"]



class FlowiseAI(CMDOPClient):
    """FlowiseAI — visual AI workflow automation plugin.

    Extends CMDOPClient with themed methods for visual AI workflow automation and no-code pipeline builder.

    Example::

        client = FlowiseAI.remote(api_key="cmdop_live_xxx")
        # ... use themed methods below
    """

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
    pass


class AsyncFlowiseAI(AsyncCMDOPClient):
    """Async variant of FlowiseAI.

    Example::

        async with AsyncFlowiseAI.remote(api_key="cmdop_live_xxx") as client:
            result = await client.agent.run("hello")
    """
    pass


# Re-export core SDK symbols for convenience
from cmdop import (  # noqa: F401, E402
    CMDOPClient,
    AsyncCMDOPClient,
)
