Defined in: [src/injection/types.ts:35](https://github.com/strands-agents/harness-sdk/blob/576da59fdc411b55036a7cf66d4e1659a67d4d0d/strands-ts/src/injection/types.ts#L35)

Configuration common to every injection consumer: when to inject. What text to inject is a consumer concern, added by the interfaces that extend this one (e.g. [MemoryInjectionConfig](/pr-cms-3708/docs/api/typescript/MemoryInjectionConfig/index.md)).

## Extended by

-   [`MemoryInjectionConfig`](/pr-cms-3708/docs/api/typescript/MemoryInjectionConfig/index.md)

## Properties

### trigger?

```ts
optional trigger?:
  | InjectionTrigger
  | ((context) => boolean);
```

Defined in: [src/injection/types.ts:43](https://github.com/strands-agents/harness-sdk/blob/576da59fdc411b55036a7cf66d4e1659a67d4d0d/strands-ts/src/injection/types.ts#L43)

When injection runs. An [InjectionTrigger](/pr-cms-3708/docs/api/typescript/InjectionTrigger/index.md) name selects a built-in policy; a predicate is the escape hatch — it receives the [InjectionContext](/pr-cms-3708/docs/api/typescript/InjectionContext/index.md) and returns whether to inject this call. A predicate that throws fails open (injection is skipped, the model call proceeds).

#### Default Value

```ts
'userTurn'
```