Skip to content

The platform for continuously improving AI agents.

407 B
Raw Blame
"""The one Temporal client of a process. Research and Workshop agents are workflows on it."""

from django.conf import settings
from temporalio.client import Client


async def connect() -> Client:
    key = settings.TEMPORAL_API_KEY
    return await Client.connect(
        settings.TEMPORAL_ADDRESS,
        namespace=settings.TEMPORAL_NAMESPACE,
        api_key=key or None,
        tls=bool(key),
    )