MCPcopy Index your code
hub / github.com/anus-dev/ANUS / build

Function build

packages/core/src/tools/tools.ts:274–280  ·  view source on GitHub ↗
(params: TParams)

Source from the content-addressed store, hash-verified

272 TResult extends ToolResult,
273> extends DeclarativeTool<TParams, TResult> {
274 build(params: TParams): ToolInvocation<TParams, TResult> {
275 const validationError = this.validateToolParams(params);
276 if (validationError) {
277 throw new Error(validationError);
278 }
279 return this.createInvocation(params);
280 }
281
282 protected abstract createInvocation(
283 params: TParams,

Callers

nothing calls this directly

Calls 2

validateToolParamsMethod · 0.45
createInvocationMethod · 0.45

Tested by

no test coverage detected