Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة
$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:٣
forks:١
updated:٢٨ مايو ٢٠٢٦ في ٠١:٠٠
مستكشف الملفات
2 ملفات
SKILL.md
readonly