Skip to main content
在 Manus 中运行任何 Skill
一键导入
$pwd:

ag2-middleware

// Intercept the AG2 beta agent loop with `BaseMiddleware` — wrap full turns (`on_turn`), each LLM call (`on_llm_call`), each tool execution (`on_tool_execution`), or each human-input request (`on_human_input`). Use for retry, logging, history trimming, request mutation, tool auditing, guardrails, or rate limiting. Built-ins: `LoggingMiddleware`, `RetryMiddleware`, `HistoryLimiter`, `TokenLimiter`, `TelemetryMiddleware` (see `ag2-telemetry`). For per-tool hooks see also `ag2-add-custom-tool` tool-middleware section.

$ git log --oneline --stat
stars:240
forks:75
updated:2026年4月30日 23:37
文件资源管理器
2 个文件
SKILL.md
readonly