Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/agent / filters / lastN
Function: lastN()
ts
function lastN(n?): DescribedFilter;Defined in: packages/agent/src/filters/index.ts:89
Stable
Keep the parent's system prompt and the last n non-system messages. Default n = 10 per the DEC-146 security-first compose.
Parameters
| Parameter | Type | Default value |
|---|---|---|
n | number | 10 |