LangChain · Class
ModelCallLimitMiddleware
Limits how many times an agent can call a model. It supports separate limits for a conversation thread and for one agent run.
Last updated
Syntax
modelCallLimitMiddleware(middlewareOptions: Partial<__type>): AgentMiddlewareIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AgentMiddlewareModelCallLimitMiddlewareErrorcreateAgent