MCPcopy Create free account
hub / github.com/Noumena-Network/code / canUseTool

Function canUseTool

src/utils/queryHelpers.ts:273–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 }
272
273 const canUseTool: CanUseToolFn = async () => ({
274 ...permissionResult,
275 decisionReason: {
276 type: 'mode',
277 mode: 'default' as const,
278 },
279 })
280
281 // Add the assistant message with tool_use to messages BEFORE executing
282 // so the conversation history is complete (tool_use -> tool_result).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected