MCPcopy Create free account
hub / github.com/apache/maka / isToolActivityIdentity

Function isToolActivityIdentity

packages/core/src/session.ts:1131–1140  ·  view source on GitHub ↗
(value: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1129}
1130
1131function isToolActivityIdentity(value: Record<string, unknown>): boolean {
1132 return (
1133 (value.origin === undefined || value.origin === 'provider' || value.origin === 'code_mode') &&
1134 (value.modelVisibility === undefined ||
1135 value.modelVisibility === 'visible' ||
1136 value.modelVisibility === 'hidden') &&
1137 isOptionalString(value.parentToolCallId) &&
1138 isOptionalString(value.parentOperationId)
1139 );
1140}
1141
1142export const STEP_LIMIT_NOTICE_TEXT =
1143 'Reached the configured step limit. The task may be incomplete. Send “continue” to resume.';

Callers 1

decodeStoredMessageFunction · 0.85

Calls 1

isOptionalStringFunction · 0.70

Tested by

no test coverage detected