@agentier/middleware
v1.0.1
Published
Built-in middleware for agentier — log, retry, rate-limit, cache
Readme
@agentier/middleware
Built-in middleware for agentier — log, retry, rate-limit, and cache.
Install
npm install @agentier/middleware @agentier/coreUsage
import { createAgent } from '@agentier/core'
import { log, retry, rateLimit, cache } from '@agentier/middleware'
const agent = createAgent({
provider: myProvider,
middleware: [log(), retry({ maxRetries: 3 }), rateLimit({ maxRpm: 60 }), cache()],
})Documentation
Full docs and examples: github.com/itIsMaku/agentier
License
MIT
