Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Unlike the PII Redactor, `entities` defaults to only the high-risk set: `credit_

Note that `block_entities` stops the run whatever `action` is set to, so `action: 'log'` is only observe-only if you also set `block_entities` to `[]`.

This middleware acts on the response rather than the prompt, because the tool calls it guards are proposed by the model. It has no mutating action, since a proposed tool call belongs to the paused turn the provider recorded.
This middleware acts on the response rather than the prompt, because the model proposes the tool calls it guards. It has no mutating action, since a proposed tool call belongs to the paused turn the provider recorded.

## Tool approval resumes

Expand Down
4 changes: 2 additions & 2 deletions docs/contributor-resources/support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebarTitle: "Support utilities"

`promptphp/intercept-support` provides shared support utilities and configuration for the Intercept middleware ecosystem.

Most users do not need to install or use this package directly. It is installed automatically when required by an Intercept middleware package.
Most users do not need to install or use this package directly. Composer installs it automatically when an Intercept middleware package requires it.

The support package provides shared infrastructure used across Intercept packages, including:

Expand Down Expand Up @@ -45,7 +45,7 @@ $config = InterceptConfig::middleware('injection_guard', [
]);
```

The helper merges the published config section with the middleware's internal defaults. If the section is missing, the defaults are returned.
The helper merges the published config section with the middleware's internal defaults. If the section is missing, the helper returns the defaults.

## Missing config sections

Expand Down
4 changes: 2 additions & 2 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ It is especially useful for:

Intercept is not a complete AI security platform.

It is a practical middleware layer that helps you add a final line of defense before prompts reach an AI provider.
It is a practical middleware layer that helps you add a final line of defence before prompts reach an AI provider.

It should be used alongside other controls, including:
Use it alongside other controls, including:

- tool permission checks
- client-side and server-side validation
Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/pii-redactor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ By default, the middleware will:

The recommended default action is `redact`.

Some entities can still be blocked even when the action is `redact`. By default, credit cards, API keys, and bearer tokens are blocked.
Some entities can still be blocked even when the action is `redact`. By default, the middleware blocks credit cards, API keys, and bearer tokens.

## Supported entities

Expand Down
2 changes: 1 addition & 1 deletion docs/middleware/tool-approval-guard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SupportAgent implements Agent, HasMiddleware

## How it differs from the other middleware

This is the first Intercept middleware that acts on the **response** rather than the prompt, because the tool calls it guards are proposed by the model.
This is the first Intercept middleware that acts on the **response** rather than the prompt, because the model proposes the tool calls it guards.

```mermaid placement="top-right"
flowchart LR
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The prompt sent to the provider becomes something like:
Please summarize this ticket for [EMAIL_1].
```

High-risk entities such as credit cards, API keys, and bearer tokens are blocked by default.
PII Redactor blocks high-risk entities such as credit cards, API keys, and bearer tokens by default.

## Recommended local setup

Expand Down
Loading