---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/context/thrift/contracts/interfaces/WorkingToolCall.md
description: >-
  A prior-turn (or this-turn) tool call in the working set, carrying the
  PRE-COMPUTED token cost of its rendered result — the pass never renders a tool
  result itself (it would need to await an artifact reader, breaking synchrony),
  so the caller measures the result via its own renderer and hands the cost
  here.
---

# Interface: WorkingToolCall

Defined in: [src/batteries/context/thrift/contracts.ts:195](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L195)

A prior-turn (or this-turn) tool call in the working set, carrying the PRE-COMPUTED token cost of
its rendered result — the pass never renders a tool result itself (it would need to await an
artifact reader, breaking synchrony), so the caller measures the result via its own renderer and
hands the cost here.

## Properties

| Property                                        | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Defined in                                                                                                                                          |
| ----------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `createdAtMs` | `number`  | Chronological order key — oldest tool results shed first among the sheddable pool.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | [src/batteries/context/thrift/contracts.ts:202](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L202) |
|  `ref`                 | `unknown` | Opaque handle back to the caller's own call record, returned unchanged so the caller can reconcile which calls survived the shed (e.g. against a `Set` of live tool-call ids).                                                                                                                                                                                                                                                                                                                                                                                                                    | [src/batteries/context/thrift/contracts.ts:198](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L198) |
|  `thisTurn?`      | `boolean` | `true` when this call was made during the CURRENT turn (the model just made it this dispatch). Such results are the turn's active working set and are protected from ordinary budget-shedding — evicting a result the model just fetched makes it immediately re-request the same call. Only prior-turn results (falsy/absent) are eligible for ordinary shedding; this-turn results are only shed by the newest-N backstop (`thisTurnResultKeep`) as a last resort. See [@nhtio/adk/batteries/context/thrift/subtractive\_pass!subtractToFit](../../subtractive_pass/functions/subtractToFit.md). | [src/batteries/context/thrift/contracts.ts:211](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L211) |
|  `tokenCost`     | `number`  | Token cost of this call's model-facing rendered result, measured by the caller.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | [src/batteries/context/thrift/contracts.ts:200](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/contracts.ts#L200) |
