registerInProcessTool method

void registerInProcessTool(
  1. String name,
  2. InProcessToolHandler handler
)

Register a single tool. Overwrites any previous handler bound to the same name, since hosts may intentionally replace a wrapper.

Implementation

void registerInProcessTool(String name, InProcessToolHandler handler) {
  _inProcess[name] = handler;
}