docs: fix v2 plugin system example (#48452)

This commit is contained in:
Wu Shuwen
2026-09-11 20:42:01 +08:00
committed by GitHub
Unverified
parent 6bb4b35399
commit 4e97b78d98
@@ -1222,7 +1222,7 @@ differently:
```ts
await ctx.session.hook("context", (event) => {
event.system.push({ text: "Keep the review focused on correctness." })
event.system.push({ type: "text", text: "Keep the review focused on correctness." })
delete event.tools.write
event.options.temperature = 0.2
event.options.maxTokens = 8_000