MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / validate

Function validate

packages/baseai/src/tool/index.ts:82–85  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

80 message: 'Description of the tool',
81 placeholder: defaultTool.function.description,
82 validate(value) {
83 if (value.length === 0)
84 return `Tool description is required!`;
85 }
86 })
87 },
88 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected