AI Agent Key Changes: Configured vs Engineered
In this article
- Background: Why the Distinction Matters
- What Configuration Actually Means for AI Agents
- What Engineering Adds Beyond Configuration
- How to Choose Between Configuration and Engineering
- Common Problems and Misconceptions
- Costs and Maintenance Trade-offs
- Safety and Accuracy Considerations
- Frequently Asked Questions
When you build an AI agent in code, the key changes are configured when you set parameters and prompts that the agent uses as-is, and engineered when you write custom code that changes how the agent processes inputs, makes decisions, or takes actions. In short, configuration is choosing from existing options, while engineering is building new capabilities that didn't exist before.
Background: Why the Distinction Matters
The terms "configured" and "engineered" often get used interchangeably, but they represent fundamentally different levels of involvement in AI agent development. Configuration is like adjusting the settings on a car—you can change the seat position, mirror angle, and climate control without altering the vehicle's mechanics. Engineering is like modifying the engine or adding a turbocharger—you're changing what the machine can actually do.
For AI agents, this distinction affects everything from development time and cost to flexibility and maintenance. A purely configured agent can be built in hours using off-the-shelf tools, but it's limited by the options the framework provides. An engineered agent might take weeks or months, but it can handle novel situations that no configuration could anticipate.
What Configuration Actually Means for AI Agents
Configuration in AI agents typically involves setting values that the underlying system already knows how to interpret. Common examples include:
- Model parameters: temperature, top-p, max tokens, frequency penalty
- System prompts: the initial instructions that set the agent's behavior
- Tool definitions: specifying which external functions the agent can call
- Memory settings: conversation history length, vector store size
- Retrieval parameters: chunk size, overlap, top-k for RAG systems
For instance, setting temperature=0.2 makes the model more deterministic, while temperature=0.8 makes it more creative. That's a configuration change. Writing a custom function that calculates shipping costs based on real-time carrier rates is engineering—the agent didn't have that ability before.
What Engineering Adds Beyond Configuration
Engineering an AI agent means writing code that extends or modifies its core logic. This includes:
- Custom tools and APIs: connecting to proprietary databases, internal systems, or specialized services
- Orchestration logic: deciding when to call which tool, how to handle errors, and when to ask for clarification
- Fine-tuning: training the base model on domain-specific data to improve performance
- Custom memory systems: building a database that stores and retrieves information in a way the agent can use
- Safety guardrails: implementing input validation, output filtering, or human-in-the-loop approval steps
For example, a customer support agent might be configured with a prompt saying "be polite and helpful." But engineering would involve writing a function that checks the customer's order status from your CRM, a function that processes refunds through your payment gateway, and logic that escalates to a human when the refund amount exceeds a threshold. None of that is configuration—it's all custom code.
How to Choose Between Configuration and Engineering
The right approach depends on your specific needs. Here's a practical framework:
- Start with configuration. For most use cases, you can get 80% of the value by carefully crafting prompts and setting parameters. This is faster, cheaper, and easier to maintain.
- Identify gaps. When the agent fails at a task, ask whether it's because it lacks information (needs a tool), lacks context (needs better memory), or lacks reasoning ability (might need fine-tuning or a different model).
- Engineer only what's necessary. Add custom tools and logic only when configuration can't solve the problem. Each piece of custom code adds maintenance burden and potential failure points.
- Consider hybrid approaches. Many production agents use a combination: configured base prompts, engineered tools for specific actions, and configured parameters for the overall behavior.
For example, a legal research agent might be configured with a prompt that instructs it to cite sources, but engineered with a custom database of case law and a tool that verifies citations against an official source. The configuration handles the tone and style; the engineering handles the domain-specific accuracy.
Common Problems and Misconceptions
One common misconception is that configuration is "just prompt writing" and doesn't require technical skill. In reality, effective configuration requires understanding how LLMs interpret instructions, how parameters affect output, and how to structure prompts for reliability. Getting a prompt right often involves iteration and testing.
Another issue is over-engineering. Developers sometimes build elaborate custom frameworks when a simple configured agent would suffice. This leads to higher costs, slower iteration, and more bugs. Conversely, under-engineering can result in an agent that looks good in demos but fails in production because it can't handle edge cases or integrate with real systems.
There's also the problem of configuration drift. As you update prompts or parameters, you may inadvertently change behavior in ways you didn't intend. Version control for prompts and configurations is essential, just as it is for code.
Finally, many people assume that engineering an agent makes it more intelligent. That's not always true. Custom code can make an agent more capable, but it can also make it more brittle if the logic is too rigid or if it doesn't account for the model's limitations.
Costs and Maintenance Trade-offs
Configuration is generally cheaper to implement and maintain. You're using existing features, so there's less code to write, test, and debug. However, you're dependent on the framework's roadmap—if the framework changes or drops a feature, your agent may break.
Engineering has higher upfront costs but can offer better long-term control. You can optimize for your specific use case, integrate deeply with your systems, and adapt quickly to new requirements. The downside is that you're responsible for maintaining the custom code, keeping it compatible with model updates, and handling security and performance issues yourself.
A practical approach is to use configuration as the default and engineering as the exception. Revisit your choices periodically—as models improve, some engineering work may become unnecessary. For instance, a custom summarization tool might be replaced by a better model that summarizes natively.
Safety and Accuracy Considerations
Both configuration and engineering introduce safety and accuracy risks. With configuration, you might set parameters that cause the agent to hallucinate more often (e.g., high temperature) or fail to refuse harmful requests. With engineering, you might introduce bugs that cause the agent to act incorrectly, or you might inadvertently create security vulnerabilities in custom tools.
To mitigate these risks:
- Always validate inputs and outputs, especially for agents that interact with external systems.
- Use sandboxing and least-privilege permissions for custom tools.
- Implement logging and monitoring to track agent behavior.
- Test with adversarial inputs to find weaknesses.
- Keep a human in the loop for high-stakes decisions.
- Document your configuration and engineering decisions so others can understand why the agent behaves as it does.
Remember that no amount of configuration or engineering can guarantee perfect accuracy. LLMs are probabilistic, and errors will happen. The goal is to minimize them and have fallback processes in place.
Frequently Asked Questions
Is changing the system prompt considered configuration or engineering?
Changing the system prompt is configuration. You're adjusting an existing input that the model uses to generate responses. It doesn't require writing new code or adding new capabilities. However, if you build a system that dynamically generates system prompts based on user data or context, that's engineering because you're creating new logic.
Can I build an AI agent without any engineering?
Yes, for simple use cases you can use no-code platforms or LLM APIs with just prompts and basic parameters. These agents can handle straightforward tasks like answering FAQs or summarizing text. But they'll be limited to what the platform supports. For anything that requires custom data, actions, or integrations, you'll need at least some engineering.
Why does my configured agent sometimes give wrong answers?
Configuration can't fix all accuracy issues. The model may lack knowledge, the prompt may be ambiguous, or the parameters may be set in a way that encourages hallucination. Review your prompts for clarity, lower the temperature for factual tasks, and consider adding retrieval (RAG) to ground the model in reliable sources. If the problem persists, you might need to engineer a custom verification step.
How do I decide when to fine-tune instead of engineer?
Fine-tuning is a form of engineering, but it changes the model's weights rather than adding external logic. Choose fine-tuning when the base model consistently fails at a task due to style, format, or domain-specific knowledge that you can provide in training examples. Choose custom tools and logic when the agent needs to access real-time data, perform actions, or follow complex business rules. Often, combining both is the best approach.
What's the biggest mistake developers make when building agents?
Underestimating the importance of evaluation. Many developers test with a few examples and assume the agent works. In production, you'll encounter edge cases, ambiguous inputs, and changing data. Build a robust evaluation set that covers typical and adversarial cases, and run it regularly as you make changes—whether those are configuration tweaks or new engineering.