Skip to main content
In production, system prompts often need versioning and dynamic delivery. Prompt management lets you template and hot-update the prompt at runtime without changing code or restarting the service. Before handling each user request, VeADK calls the prompt manager’s get_prompt method to fetch the latest content and uses it as the agent’s system prompt.

Using CozeLoop

VeADK ships CozeloopPromptManager, which connects the system prompt to CozeLoop’s cloud prompt management. Install the CozeLoop Python SDK:
Provide credentials via environment variables rather than hardcoding them:
Create the manager and pass it to the agent:
CozeLoop caches prompts locally with a one-minute refresh interval. If fetching fails, it falls back to VeADK’s default system prompt.

Custom prompt manager

To load prompts from your own configuration service, database, or files, subclass BasePromptManager and implement get_prompt. It is called before handling each user request, and the returned string becomes the agent’s system prompt.
Last modified on September 19, 2026