MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isFunctionResponse

Function isFunctionResponse

packages/core/src/utils/messageInspectors.ts:10–16  ·  view source on GitHub ↗
(content: Content)

Source from the content-addressed store, hash-verified

8import { Content } from '@google/genai';
9
10export function isFunctionResponse(content: Content): boolean {
11 return (
12 content.role === 'user' &&
13 !!content.parts &&
14 content.parts.every((part) => !!part.functionResponse)
15 );
16}
17
18export function isFunctionCall(content: Content): boolean {
19 return (

Callers 4

checkNextSpeakerFunction · 0.85
findLastEditTimestampFunction · 0.85
tryCompressChatMethod · 0.85
recordHistoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected