Give an AG2 Agent the ability to run shell commands or code. Covers SandboxShellTool (client-side, any provider) with execution backends LocalEnvironment, DockerEnvironment, DaytonaEnvironment, TenkiEnvironment; command filtering and restricted mode (allowed, blocked, ignore, readonly); AnthropicBashTool (Anthropic's…
Get a typed Python value back from an AG2 Agent instead of free text. Pass responseschema= (a Pydantic model, dataclass, primitive, union, ResponseSchema, or @responseschema validator) and read the parsed result via await reply.content(). Use when the user wants validated structured output, classification, extraction…
Delegate work from one AG2 Agent to explicit worker agents exposed as tools via Agent.astool() / subagenttool() (blocking), backgroundagenttool() (fire-and-forget) or dynamicagent() (LLM-composed workers). Covers parallel fan-out (several delegate calls in one model response), a shared concurrency cap via one function…
Add OpenTelemetry traces to an AG2 Agent with TelemetryMiddleware (ag2.middleware, extra ag2[tracing]). Emits GenAI-semconv spans — invokeagent (turn), chat (LLM call), executetool, awaithumaninput, plus recordusage spans for every UsageEvent (sub-agents, compaction) — with capturecontent, maxtoolresultchars…
Test AG2 agents and tools without hitting a real LLM provider. Pass TestConfig(...) from ag2.testing as the agent's config (or per-ask) to script LLM turns — text, ToolCallEvent(name=..., arguments= ), parallel tool calls, provider exceptions — and wrap it in TrackingConfig to assert exactly what the model received…
AG2 design system and brand guidelines. Applies consistent visual identity to all generated UI code, artifacts, and visual output for the AG2 multi-agent AI framework.
★not rated 6 7mo agoA
tokens not measured
originalApache-2.0
Multi-agent orchestration patterns for AG2: group chat, sequential, round-robin, and custom workflows.
★not rated 6 7mo agoA
tokens not measured
originalApache-2.0
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: