AgentStack

openai/swarm

by openai

7
orchestrationVisit

Description

- **Core library:** 4 files, 507 lines total

Summary

Canonical 507-LOC reference implementation for agent handoffs. Two primitives—Agent + Handoff—create stateless client-side orchestration loop. Steal: function-return-as-handoff (validated across 4 rep...

Steal Patterns

function-return-as-handoff (zero-config agent switching)

context_variables injection via `co_varnames` introspection

`execute_tools=false` for external tool execution

mock client testing pattern

and the "routines as agents" philosophy.

** This is trivially implementable and immediately useful

** The `delim` pattern is essential for real-time multi-agent UIs

** This sequential response mock pattern is perfect for testing Forge agent handoffs

Tags

orchestrationtypescriptpythonmulti-agentopen-sourceswarmllmhandoffs
License: MITAdded: 2026-03-09

Related Tools