Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions examples/agents/13_hierarchical_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@
if __name__ == "__main__":
with AgentRuntime() as runtime:
print("--- Technical question (CEO -> Engineering -> Backend) ---")
# result = runtime.run(ceo, "Design a REST API for a user management system with authentication "
# "and then ask marketing team to come up with a marketing campaign for the system with details on how to run these campaign")
# result.print_result()
result = runtime.run(
ceo,
"Design a REST API for a user management system with authentication, "
"then ask the marketing team for a campaign to promote it.",
)
result.print_result()

# Production pattern:
# 1. Deploy once during CI/CD:
Expand All @@ -121,4 +124,4 @@
# runtime.deploy(ceo)
#
# 2. In a separate long-lived worker process:
runtime.serve(ceo)
# runtime.serve(ceo)
Loading