> ## Documentation Index
> Fetch the complete documentation index at: https://docs.forterulesengine.io/llms.txt
> Use this file to discover all available pages before exploring further.

# resolveCallingFunction

> v0.20.5

> **resolveCallingFunction**(`callingFunctionRef`, `lookupMaps`): `string`

Defined in: [src/modules/validation.ts:78](https://github.com/Forte-Service-Company-Ltd/forte-rules-engine-sdk/blob/40cc8388cecd8ee445b00b9df2b681cff8552ece/src/modules/validation.ts#L78)

Resolves calling function name to full signature using lookup maps.
Supports backward compatibility by accepting both name-only references and full signatures.
Uses O(1) Map lookups for optimal performance.

## Parameters

| Parameter                               | Type                                                                                                                                                                                                                                                                                                                                         | Description                                        |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| `callingFunctionRef`                    | `string`                                                                                                                                                                                                                                                                                                                                     | Either a short name or full function signature     |
| `lookupMaps`                            | \{ `callingFunctionByName`: `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>; `callingFunctionByNameLower`: `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>; `callingFunctionBySignature`: `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>; } | The pre-built lookup maps for efficient resolution |
| `lookupMaps.callingFunctionByName`      | `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>                                                                                                                                                                                                                                                              | -                                                  |
| `lookupMaps.callingFunctionByNameLower` | `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>                                                                                                                                                                                                                                                              | -                                                  |
| `lookupMaps.callingFunctionBySignature` | `Record`\<`string`, [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>                                                                                                                                                                                                                                                              | -                                                  |

## Returns

`string`

The resolved function signature or the original reference if not found
