mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 00:03:00 +00:00
docs: update CHANGELOG and hooks.md with missing items
- tools.ts example hook - Multiple messages from before_agent_start - getSettingsListTheme/getSelectListTheme optional theme param - Hook error stack traces
This commit is contained in:
parent
b06bd1d24c
commit
5318b42bd2
2 changed files with 6 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ pi.on("before_agent_start", async (event, ctx) => {
|
|||
});
|
||||
```
|
||||
|
||||
**message**: Persisted as `CustomMessageEntry` and sent to the LLM.
|
||||
**message**: Persisted as `CustomMessageEntry` and sent to the LLM. Multiple hooks can each return a message; all are injected in order.
|
||||
|
||||
**systemPromptAppend**: Appended to the base system prompt for this agent run only. Multiple hooks can each return `systemPromptAppend` strings, which are concatenated. This is useful for dynamic instructions based on hook state (e.g., plan mode, persona toggles).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue