researcher = client.Agent(
name="Researcher",
description="Gathers facts",
model_provider="openai",
model_name="gpt-4-turbo",
api_secret="YOUR_OPENAI_API_KEY",
)
summarizer = client.Agent(
name="Summarizer",
description="Summarizes findings",
model_provider="openai",
model_name="gpt-3.5-turbo",
api_secret="YOUR_OPENAI_API_KEY",
)
wf = client.Workflow().add(researcher).add(summarizer)
print(wf.run("Explain Retrieval-Augmented Generation in simple terms"))