The platform for continuously improving AI agents.
"""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),
)