feat(agents): add provider-owned system prompt contributions

This commit is contained in:
Peter Steinberger
2026-04-05 14:05:35 +01:00
parent 1a7c2a9bc8
commit 760c4be438
15 changed files with 413 additions and 59 deletions

View File

@@ -513,6 +513,13 @@ API key auth, and dynamic model resolution.
| 42 | `validateReplayTurns` | Strict replay-turn validation before the embedded runner |
| 43 | `onModelSelected` | Post-selection callback (e.g. telemetry) |
Prompt tuning note:
- `resolveSystemPromptContribution` lets a provider inject cache-aware
system-prompt guidance for a model family. Prefer it over
`before_prompt_build` when the behavior belongs to one provider/model
family and should preserve the stable/dynamic cache split.
For detailed descriptions and real-world examples, see
[Internals: Provider Runtime Hooks](/plugins/architecture#provider-runtime-hooks).
</Accordion>