Patch Changes
-
#11012
4aeaa76Thanks @christian-bromann! - feat(langchain): addwhenpredicate to human-in-the-loop middlewareAdd an optional
whencallback onInterruptOnConfigso callers can
dynamically skip interrupts for specific tool calls. The predicate receives
aToolCallRequest(batchafterModelcontext) and returns whether to
interrupt or auto-approve, matching PythonHumanInTheLoopMiddleware. -
#11080
e51478aThanks @aolsenjazz! - feat(aws): bedrock prompt caching middlewareAdds bedrockPromptCachingMiddleware. The interface largely matches what was previous implemented with anthropicPromptCachingMiddleware, making a best-effort attempt at utilizing prompt caching features for supported models.