pre_turn
Load context for a topic at the start of each turn by fetching a summary and relevant knowledge. Solves context injection for providers without automatic hooks.
Instructions
Call at the START of each turn to load context in one shot. Equivalent to status + get_context(format='compact'). Returns active context summary and knowledge for the given topic. Ideal for providers without automatic injection hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Current topic or question to fetch context for | |
| keywords | No | Additional keywords to broaden context search | |
| max_tokens | No | Max tokens for context output (default 200) |