You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adds support for template variables in `messages.responsePrefix` that
resolve dynamically at runtime with the actual model used (including
after fallback).
Supported variables (case-insensitive):
- {model} - short model name (e.g., "claude-opus-4-5", "gpt-4o")
- {modelFull} - full model identifier (e.g., "anthropic/claude-opus-4-5")
- {provider} - provider name (e.g., "anthropic", "openai")
- {thinkingLevel} or {think} - thinking level ("high", "low", "off")
- {identity.name} or {identityName} - agent identity name
Example: "[{model} | think:{thinkingLevel}]" → "[claude-opus-4-5 | think:high]"
Variables show the actual model used after fallback, not the intended
model. Unresolved variables remain as literal text.
Implementation:
- New module: src/auto-reply/reply/response-prefix-template.ts
- Template interpolation in normalize-reply.ts via context provider
- onModelSelected callback in agent-runner-execution.ts
- Updated all 6 provider message handlers (web, signal, discord,
telegram, slack, imessage)
- 27 unit tests covering all variables and edge cases
- Documentation in docs/gateway/configuration.md and JSDoc
Fixes #923
|
10 months ago | |
|---|---|---|
| .. | ||
| _layouts | 11 months ago | |
| assets | 10 months ago | |
| automation | 10 months ago | |
| channels | 10 months ago | |
| cli | 10 months ago | |
| concepts | 10 months ago | |
| experiments | 10 months ago | |
| gateway | 10 months ago | |
| images | 11 months ago | |
| install | 10 months ago | |
| nodes | 10 months ago | |
| platforms | 10 months ago | |
| plugins | 10 months ago | |
| providers | 10 months ago | |
| refactor | 10 months ago | |
| reference | 10 months ago | |
| start | 10 months ago | |
| tools | 10 months ago | |
| web | 10 months ago | |
| CNAME | 11 months ago | |
| _config.yml | 10 months ago | |
| bedrock.md | 10 months ago | |
| broadcast-groups.md | 10 months ago | |
| compaction.md | 10 months ago | |
| debugging.md | 11 months ago | |
| docs.json | 10 months ago | |
| environment.md | 11 months ago | |
| index.md | 10 months ago | |
| logging.md | 10 months ago | |
| multi-agent-sandbox-tools.md | 10 months ago | |
| plugin.md | 10 months ago | |
| scripts.md | 11 months ago | |
| testing.md | 10 months ago | |
| token-use.md | 10 months ago | |
| tui.md | 11 months ago | |
| whatsapp-clawd.jpg | 12 months ago | |