Dynamic System Prompts
Agents support dynamic system prompts that can include live data through template functions. These functions are executed each time the agent runs, providing fresh context. Use{module::function} syntax to embed dynamic values:
RunContext data that you previously set in the context.
- Real-time context: System prompts reflect current state
- Dynamic behavior: Agent adapts to changing conditions
- Automatic execution: Functions run on each conversation
- Performance: Template resolution is fast and cached
- Sync/Async: Handles both sync and async functions automatically