# AI Extensions, November 12: Strands Decider before a tool call

- Author: RomanMotion (https://wurk.fun/user/RomanMotion)
- Published: 2026-11-12
- Canonical (HTML): https://wurk.fun/blog/ai-extensions-november-12-strands-decider-before-a-tool-call
- Cover image: https://ik.imagekit.io/wurk/browser-uploads/f1c626b5c17e7f0a61dfbbe7a20d85ae7b33a20527243aeec2ee1d0a8b87562a/db369cf4-c96e-48f5-8bfa-1ed1d5d5602e/1-2026-11-12-ai-extensions-digest-hero-1200.jpg?wurkUpload=v1.c_irflxa4IInmSIR6zUhEUpoWof2ZI36CWMRC4DGmNU

---

By Jack Gross. Originally published November 12, 2026 on [Jack Gross](https://jackgross-five.vercel.app/posts/ai-extensions-digest-2026-11-12).

A classifier at the intervention point
--------------------------------------

Strands Decider returns choices, yes/no probabilities or scores instead
of free-form text. This review read the public repository and its Strands
weather example. Before a proposed tool call executes, the example asks
whether the arguments came from the user and whether clarification is
still needed. The package was not installed, its weights were not loaded and the
demo was not run. This is a source review of an experimental extension
to an agent workflow.

The code owns the branch
------------------------

The example implements InterventionHandler.before\_tool\_call. Its two
noul questions return probabilities of true. The Python policy sends
Guide feedback when arguments are insufficiently grounded or the call is
premature; otherwise it returns Proceed. YES = 0.45 is an illustrative
threshold chosen by the example\'s authors. It is not a measured
production recommendation. Even the weather tool returns a fixed
fictional temperature, so a successful demo would not validate weather
retrieval.

Read each output type separately
--------------------------------

The schema defines noul as a yes/no probability with no separate
confidence field. Choice includes a selected option, probabilities and a
confidence value derived from how concentrated the distribution is.
Score uses an ordered rubric and a different confidence calculation
based on its spread. These fields should not be collapsed into one
universal probability of correctness. The repository\'s benchmark and
calibration numbers are project-reported measurements, not an assurance
for a new tool, language or task.

![AI-generated conceptual illustration of a classifier checkpoint reviewing a proposed tool call before it runs](https://ik.imagekit.io/wurk/browser-uploads/f1c626b5c17e7f0a61dfbbe7a20d85ae7b33a20527243aeec2ee1d0a8b87562a/1455de4c-f2a8-43de-a6aa-a886266666eb/2-2026-11-12-ai-extensions-digest-inline-1000.jpg?wurkUpload=v1.mHKHi_pQASNzsqS_uN9jjiGv0-ygrgZCYkXh3Du9psw)

Local scoring has a wider dependency chain
------------------------------------------

The package requires Python 3.10 or later and dependencies including
PyTorch, Transformers and FastAPI. The worked agent example also needs
strands-agents and AWS credentials with Bedrock access; a locally served
decider does not make that whole agent local or free. The repository\'s
LICENSE is Apache 2.0, with notice conditions and an explicit warranty
disclaimer. Review the selected checkpoint and its terms separately.
SECURITY.md points vulnerability reports to AWS\'s disclosure channels;
its presence is not a security audit.

An evaluation before authority
------------------------------

For an invented support tool, freeze examples with explicit arguments,
missing arguments and a plausible value inserted by the assistant. Label
expected outcomes before choosing thresholds. Measure incorrect proceeds
and unnecessary clarification separately, and test timeouts and
malformed replies. Keep permission checks, destination allowlists and
spending limits in deterministic code even when a classifier is
confident. The weather example is not a production access-control
policy, and these cases have not been measured.

An illustrative record to inspect
---------------------------------

The record below separates model observations from an independent
authorization check. It is an invented review fixture, not the upstream
request format, executable policy or a reproduced result. The first
useful deployment decision would be whether the classifier catches
errors that existing validation misses at an acceptable cost. That needs
task-specific evidence and an approved test environment before any real
calls.

```
# Invented review record. Not an upstream request or runnable policy.
review = {
    "classifier_observations": {"args_grounded": 0.83,
                                "premature": 0.12},
    "independent_authorization": "not_checked",
    "expected_action": "hold_for_review",
}
# Invented numbers; confidence cannot supply missing permission.
```

### Proposed review flow

1.  Classify the proposed call
2.  Apply an independent permission check
3.  Measure wrong proceeds and needless questions

Sources and scope
-----------------

-   <https://github.com/strands-labs/strands-decider>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/examples/strands/tool_call_intervention.py>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/examples/strands/README.md>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/src/strands_decider/schema.py>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/LICENSE>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/pyproject.toml>
-   <https://raw.githubusercontent.com/strands-labs/strands-decider/main/SECURITY.md>

## Optional tools for your own projects

Advertisement / referral links. We may receive referral credit. For your next coding project, [try ZCode free through this invitation](https://zcode.z.ai/invite/ALWM9JUA). Complete the invitation onboarding steps and check current eligibility.

[Check the Coding Plan referral discount](https://z.ai/subscribe?ic=R0K78RJKNW). Confirm included models, eligibility and the final discount at checkout. Standard API usage is billed separately.
