MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / hasProposedTools

Function hasProposedTools

cli/src/utils/implementor-helpers.ts:40–46  ·  view source on GitHub ↗
(blocks?: ContentBlock[])

Source from the content-addressed store, hash-verified

38] as const
39
40const hasProposedTools = (blocks?: ContentBlock[]): boolean => {
41 if (!blocks || blocks.length === 0) return false
42
43 return blocks.some(
44 (block) => block.type === 'tool' && isProposedToolName(block.toolName),
45 )
46}
47
48/**
49 * Check if an agent is an implementor agent.

Callers 1

isImplementorAgentFunction · 0.85

Calls 1

isProposedToolNameFunction · 0.85

Tested by

no test coverage detected