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

Function isAdvisorBlock

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

Source from the content-addressed store, hash-verified

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

Callers 3

AssistantMessageBlockFunction · 0.85
MessagesImplFunction · 0.85
stripAdvisorBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected