---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/comparison/variables/compareValuesTool.md
description: >-
  Compare two values and return their relationship (`equal`, `greater_than`,
  `less_than`).
---

# Variable: compareValuesTool

```ts
const compareValuesTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/comparison/index.ts:43](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/comparison/index.ts#L43)

Compare two values and return their relationship (`equal`, `greater_than`, `less_than`).

## Remarks

Handles numbers, strings (lexicographic), booleans, ISO date strings, and null/undefined.
Use `type_hint` to force a specific interpretation; the default `auto` infers from the
values themselves.
