Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed May 5, 2024
1 parent 342279c commit 5f9059f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions multi_agents/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
import json
import os

# Run with LangSmith if API key is set
if os.environ.get("LANGCHAIN_API_KEY"):
os.environ["LANGCHAIN_TRACING_V2"] = "true"
load_dotenv()

with open('task.json', 'r') as f:
task = json.load(f)


async def main():
with open('task.json', 'r') as f:
task = json.load(f)

master_agent = MasterAgent(task)
research_report = await master_agent.run()
print(research_report)
Expand Down

0 comments on commit 5f9059f

Please sign in to comment.