Nativa PHP Core

Article

DSH vs iné frameworky ... porovnanie agentných platforiem

Ilustračný obrázok článku: Comparison, dsh-series, deepseek, comparison

Prečo porovnávať

Agentné frameworky rastú exponenciálne. Každý sľubuje „vhodný spôsob“ ako stavať agentov. Ale každý má inú filozofiu.

Porovnáme 5 mainstream frameworkov:

FrameworkFilozofiaJadro
DeepSeek HarnessEverything is a pluginCordis (TypeScript)
LangChainChain of thoughtPython, LCEL
AutoGenMulti-agent conversationPython, Microsoft
CrewAIRole-based agentsPython, LangChain
OpenAI SwarmLightweight handoffsPython, stateless

DeepSeek Harness

Filozofia: „Everything is a plugin.“

Všetko je capability seam.
Agent loop je plugin.
Filesystem je plugin.
Sandbox je plugin.

Výhody:

  • 50 packages, každý vymeniteľný
  • Capability seams (Definition / Provider / Consumer)
  • Event-sourced sessions
  • Sandbox (bwrap/Landlock/Seatbelt)
  • TypeScript (type safety) Nevýhody:
  • Developer preview (stále sa vyvíja)
  • TypeScript only (nie Python)
  • Žiadna komunita (zatiaľ)

Kedy použiť: Keď potrebujete plnú kontrolu nad agent architektúrou a máte TypeScript tím.

LangChain

Filozofia: "Chain everything."

Prompt → LLM → Parser → Tool → Memory → Output
Každý krok je "chain" alebo "runnable"

Výhody:

  • Obrovská komunita
  • Množstvo integrácií (100+ tools)
  • LangGraph pre state machines
  • LangSmith pre monitoring Nevýhody:
  • Abstraction overload (príliš veľa vrstiev)
  • Python only
  • Vysoká latencia (veľa medzikrokov)
  • Ťažké debugovať

Kedy použiť: Keď potrebujete rýchlo integrovať veľa externých služieb a máte Python tím.

AutoGen (Microsoft)

Filozofia: „Agents talk to each other.“

Agent A ←→ Agent B ←→ Agent C
Každý agent je „conversable“
Konverzácia je hlavný mechanizmus

Výhody:

  • Multi-agent conversations
  • Group chat medzi agentmi
  • Code execution v sandboxe
  • Microsoft backing Nevýhody:
  • Conversational paradigm je obmedzujúci
  • Ťažké kontrolovať flow
  • Python only
  • Žiadne capability seams

Kedy použiť: Keď potrebujete multi-agent diskusie a máte Microsoft ekosystém.

CrewAI

Filozofia: "Role-based agents."

Captain → Researcher → Writer → Reviewer
Každý agent má "role", "goal", "backstory"

Výhody:

  • Jednoduché API
  • Role-based design (intuitívne)
  • Built-in delegation
  • Task-based workflow Nevýhody:
  • Závisí na LangChain
  • Obmedzená flexibilita
  • Žiadne capability seams
  • Python only

Kedy použiť: Keď potrebujete jednoduchý multi-agent workflow bez komplexnej konfigurácie.

OpenAI Swarm

Filozofia: „Lightweight handoffs.“

Agent A → handoff → Agent B → handoff → Agent C
Žiadne persistent state
Žiadne tools (len handoff)

Výhody:

  • Ultra-ľahký (~100 riadkov)
  • Jednoduché handoffs
  • Stateless (ľahké testovať) Nevýhody:
  • Žiadne persistent sessions
  • Žiadne tools
  • Žiadne sandbox
  • Žiadne capability seams

Kedy použiť: Keď potrebujete jednoduchý orchestrátor pre multi-agent routing.

Porovnanie

AspektDSHLangChainAutoGenCrewAISwarm
JadroPluginChainConversationRoleHandoff
SessionsEvent-sourcedMemoryStateStateStateless
ToolsScopedGlobalGlobalGlobalŽiadne
Sandboxbwrap/LandlockŽiadnyCode execŽiadnyŽiadny
Capability seamsÁnoNieNieNieNie
Hot-swapÁnoNieNieNieNie
LanguageTypeScriptPythonPythonPythonPython
ZrelosťPreviewStableStableStableExperimental

Kľúčový rozdiel: Capability Seams

Len DSH má capability seams. Ostatné frameworky majú:

FrameworkNamiesto seams
LangChainTool registry (global)
AutoGenRegistered functions
CrewAITool descriptions
SwarmŽiadne

Capability seams umožňujú:

  • Výmenu implementácie bez zmeny consumer
  • Scoping (každý agent svoje tools)
  • Compozícia (sandbox + policy + provider)
  • Testovanie (mock provider)

Kľúčový rozdiel: Event-sourced sessions

Len DSH a AutoGen majú persistent sessions. Ale:

FrameworkSession type
DSHEvent-sourced (append-only log)
LangChainMemory (state-based)
AutoGenState (in-memory)
CrewAIState (in-memory)
SwarmStateless

Event-sourced sessions umožňujú:

  • Replay histórie
  • Compaction (zmenšenie logu)
  • Replication (P2P sync)
  • Audit trail

Kedy použiť čo

PotrebaFramework
Plná kontrola nad architektúrouDSH
Rýchla integrácia 100+ služiebLangChain
Multi-agent diskusieAutoGen
Jednoduchý role-based workflowCrewAI
Ľahký orchestrátorSwarm
P2P distribuovaní agentiDSH
Enterprise s sandboxomDSH
Prototyp za hodinuCrewAI alebo Swarm

Záver

Neexistuje "univerzálny" framework. Každý rieši iný problém:

  • DSH = plná kontrola, modulárnosť, bezpečnosť
  • LangChain = integrácie, komunita, rýchlosť vývoja
  • AutoGen = multi-agent konverzácie
  • CrewAI = intuitívne role-based agenty
  • Swarm = ľahkosť, jednoduchosť Ak staviate produktívny, bezpečný, distribuovaný systém → DSH.

Ak staviate prototyp s množstvom integrácií → LangChain.

→ DeepSeek Harness ... 50 balíkov: architektonický prehľad → Capability seams: Service Definition / Provider / Consumer → Chladnička ako P2P server: hardvér pre P2P uzly

Zdroje

Comments (0)

No comments yet — be the first to react.

Reader questions (0)

No questions yet — be the first to ask.

Stuck on something in this article? Ask below. Your name is shown publicly; your email is never stored. A question appears here once a moderator approves it.