Ask a question to get started
Enter to send•Shift+Enter new line
PatchToolCallsMiddleware()
AgentMiddleware
Before the agent runs, handle dangling tool calls from any AIMessage.
Middleware to patch dangling tool calls in the messages history.