apps/opik-documentation/documentation/fern/docs-v2/prompt_engineering/overview.mdx
Agent Configuration lets you manage your prompts, model settings, and tool definitions outside your codebase. Version them, update them without redeploying, and keep a full history of every change.
When prompts and parameters are hardcoded, every change requires a deploy. There is no history of what changed, no way to roll back quickly, and no clean way to test a different prompt in staging vs. production.
Agent Configuration gives you version control for your agent's parameters. Define them once in code, push them to Opik, and update, compare, and promote versions through the UI or SDK.
prod or staging in the UI. Your agent picks it up automatically.{{variable}} substitution built in.Config subclass (Python) or a plain object (TypeScript) with your fields and defaults, then push it with create_config / createConfig.get_or_create_config / getOrCreateConfig. The SDK returns the version that matches your requested environment or version. If Opik is temporarily unreachable, it falls back to the defaults you provided.When you want to change something, create a new version and move the prod label to it. Your
running agent picks up the change on its next fetch — no redeploy needed.