---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/_shared/functions/makeShortCircuit.md
---

# Function: makeShortCircuit()

```ts
function makeShortCircuit(): (result: string) => never;
```

Defined in: [batteries/tools/\_shared/index.ts:190](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/_shared/index.ts#L190)

Build a `shortCircuit(result)` function for an input-pipeline context. Calling it throws the
internal sentinel, which [runInputPipeline](runInputPipeline.md) catches and converts into the verbatim result
(skipping the HTTP request entirely — e.g. a cache hit).

## Returns

A function that, when called with a result string, throws the short-circuit sentinel.

(`result`: `string`) => `never`
