CoolFace
Apppublic

polojuan/agentic-workflows

sourceHugging Facemitupdated 11mo agoView on Hugging Face
0likes
__init__.py18 linesDownload Raw Back to agents
1# This file makes the agents directory a Python package2 3# # Global client instance that all agents can access4# client = None5 6# def set_client(openai_client):7#     """Set the OpenAI client for all agents to use."""8#     global client9#     client = openai_client10 11#     # Also set it in each agent module12#     from . import planner_agent, research_agent, editor_agent, execution_agent, writer_agent13#     planner_agent.client = openai_client14#     research_agent.client = openai_client15#     editor_agent.client = openai_client16#     execution_agent.client = openai_client17#     writer_agent.client = openai_client18