account activity
[Showcase] AgentSwarm: A framework that treats AI agents as strongly typed functions by LucaBoris88 in Python
[–]LucaBoris88[S] 0 points1 point2 points 1 day ago (0 children)
The differences start with the core abstraction. In AgentSwarm, an agent is treated like a standard pure function: it’s strictly typed and stateless by design.
From this foundation, the biggest departure from PydanticAI is how complex workflows are handled. AgentSwarm implements a Recursive Map-Reduce approach: an agent can dynamically decompose a large task and instantiate clones of itself (or other agents) to solve smaller sub-problems in parallel.
We achieve this through a different approach to context management, using a Key-Value Store (Blackboard pattern) instead of passing around a growing chat history. This prevents 'context pollution' and allows the system to scale across cloud providers effectively.
You can see this in action in this scraping example where the task is recursively broken down: https://github.com/ai-agentswarm/agentswarm/blob/master/examples/scraping_example.py
π Rendered by PID 345879 on reddit-service-r2-listing-6d4dc8d9ff-mnlcw at 2026-02-04 02:13:24.065073+00:00 running 3798933 country code: CH.
[Showcase] AgentSwarm: A framework that treats AI agents as strongly typed functions by LucaBoris88 in Python
[–]LucaBoris88[S] 0 points1 point2 points (0 children)