Enter to send·Shift+Enter new line
PatchToolCallsMiddleware()
AgentMiddleware
Omit hook inputs from traces by default; set a TracePolicy to override.
TracePolicy
Before the agent runs, handle dangling tool calls from any AIMessage.
Middleware to patch dangling tool calls in the messages history.