Add system-level dynamic variables support in session management. Implement methods to generate and apply built-in variables for current session time, UTC time, and timezone. Update documentation to reflect new variables and enhance tests for dynamic variable handling in the UI components.
This commit is contained in:
@@ -83,6 +83,10 @@ Rules:
|
||||
- Max entries: 30
|
||||
- Max value length: 1000 chars
|
||||
- Placeholder format in `systemPrompt` and `greeting`: `{{variable_name}}`.
|
||||
- Built-in system variables (always available): `{{system__time}}`, `{{system_utc}}`, `{{system_timezone}}`.
|
||||
- `system__time`: current local time (`YYYY-MM-DD HH:mm:ss`)
|
||||
- `system_utc`: current UTC time (`YYYY-MM-DD HH:mm:ss`)
|
||||
- `system_timezone`: current local timezone
|
||||
- Missing referenced placeholders reject `session.start` with `protocol.dynamic_variables_missing`.
|
||||
- Invalid `dynamicVariables` payload rejects `session.start` with `protocol.dynamic_variables_invalid`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user