MCPcopy Index your code
hub / github.com/simstudioai/sim / validateCallChain

Function validateCallChain

apps/sim/lib/execution/call-chain.ts:38–44  ·  view source on GitHub ↗
(chain: string[])

Source from the content-addressed store, hash-verified

36 * safe to extend.
37 */
38export function validateCallChain(chain: string[]): string | null {
39 if (chain.length >= MAX_CALL_CHAIN_DEPTH) {
40 return `Maximum workflow call chain depth (${MAX_CALL_CHAIN_DEPTH}) exceeded.`
41 }
42
43 return null
44}
45
46/**
47 * Builds the next call chain by appending the current workflow ID.

Callers 3

call-chain.test.tsFile · 0.90
handleExecutePostFunction · 0.90
executeCoreMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected