Files
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

23 lines
659 B
Markdown

# History processor configuration
History processors can filter the history/trajectory to query the model.
For example, a very simple history processor would be one that strips away old observations to reduce context when querying the model.
You can set them as follows:
```yaml
agent:
history_processors:
- type: last_n_observations
n: 5
```
::: sweagent.agent.history_processors.DefaultHistoryProcessor
::: sweagent.agent.history_processors.LastNObservations
::: sweagent.agent.history_processors.TagToolCallObservations
::: sweagent.agent.history_processors.CacheControlHistoryProcessor
::: sweagent.agent.history_processors.RemoveRegex