MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / isAdvisorBlock

Function isAdvisorBlock

src/utils/advisor.ts:36–44  ·  view source on GitHub ↗
(param: {
  type: string
  name?: string
})

Source from the content-addressed store, hash-verified

34export type AdvisorBlock = AdvisorServerToolUseBlock | AdvisorToolResultBlock
35
36export function isAdvisorBlock(param: {
37 type: string
38 name?: string
39}): param is AdvisorBlock {
40 return (
41 param.type === 'advisor_tool_result' ||
42 (param.type === 'server_tool_use' && param.name === 'advisor')
43 )
44}
45
46type AdvisorConfig = {
47 enabled?: boolean

Callers 3

AssistantMessageBlockFunction · 0.85
MessagesImplFunction · 0.85
stripAdvisorBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected