Skip to content
masterclass Buddy

Deep Agents · Class

NemotronToolCallShim

Repairs a tool-call request, runs the tool through a handler, and normalizes empty results. It returns a ToolMessage or Command.

Last updated

Since
v0.7

Syntax

wrap_tool_call(self, request: ToolCallRequest, handler: Callable[[ToolCallRequest], ToolMessage | Command[Any]]) -> ToolMessage | Command[Any]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ToolCallRequest
  • ToolMessage
  • Command
  • Middleware
  • create_deep_agent

Source: wrap_tool_call | deepagents | LangChain Reference. Checked 2026-11-03.