integrate-arcjet-guard-agent-framework-go
Installation
SKILL.md
Integrate Arcjet Guard into Microsoft Agent Framework for Go
github.com/arcjet/arcjet-go/agentframework wraps the application's existing
arcjet.GuardClient. Shared Guard fundamentals (client, rules, labels,
decisions, capture) live in
../arcjet/references/guards_go.md. Load
that reference for anything that is not framework-specific.
Three surfaces, one decision rule:
- Any Go function →
arcjet.GuardActionin the root module. No framework dependency. Returns*arcjet.GuardDeniedErroror*arcjet.GuardUnavailableError. - A
tool.FuncToolyou can name at wiring time (fromfunctool.New,mcptool.ListTools, oragenttool.New) →agentframework.GuardTool, orGuardToolsfor a list. The result is still atool.FuncTool. - An agent whose tools the model picks, or user text to screen →
agentframework.GuardMiddlewareinagent.Config.Middlewares.