Your Path to AI by Your Stack, with a 4-Week Plan
Created by Manuel Herrera Mesén ·
Part 2 of 2 of the series "From Traditional Developer to Engineer in the AI Era". In part 1 we saw the five roles that show up in real job postings today (Agent Engineer, Forward Deployed Engineer, LLMOps, Evals Engineer, and Solutions Architect) and why you don't start from zero.
You already know which jobs exist. Now let's get practical: what to learn first with the language you already master, and how to turn it into a project you can show in four weeks.
Before You Start
You don't need to read everything. Find your stack in the table and go to its section. Each path has four parts: your advantage, one tool to start with, a first exercise, and the role it points to. The other tools stay under "later", so you don't try to learn ten things at once.
| If you come from… | Start with | Role it points to |
|---|---|---|
| Java | Spring AI | Agent Engineer, Solutions Architect, FDE |
| .NET | Microsoft.Extensions.AI and Microsoft Agent Framework | Agent Engineer, Solutions Architect, FDE |
| React and front end | Vercel's AI SDK | Agent Engineer |
| Mobile | The system model: Foundation Models (iOS) or Gemini Nano (Android) | Agent Engineer, focused on the device |
| Full-stack | PostgreSQL with pgvector and a workflow orchestrator | Agent Engineer, FDE |
| Python | PydanticAI | Evals Engineer, LLMOps, Agent Engineer |
The versions and names in this guide were checked on November 30, 2026. This field changes fast: if you read this months later, confirm them in the official documentation linked in each section.
The Piece Every Path Shares
Before going stack by stack, there's one idea that's in all of them: function calling (or tool calling). It's how a model uses your code. You describe a function with a name, an explanation, and the data it takes. When the model needs it, it gives you back a request: "call this function with this data".
The most important sentence in this guide is this one: the model doesn't execute anything. It only asks. Your application decides whether to run the function, with which permissions, and what to give back. That's how Anthropic's documentation describes it: the model returns a structured call and your application runs it.
- Person calls Your application: Where is my order P-1001?
- Your application calls Model: question + description of estadoDelPedido
- Model replies to Your application: estadoDelPedido({ numero: "P-1001" })
- Your application calls Your service: estadoDe("P-1001")
- Your service replies to Your application: EN_CAMINO, arrives Dec 3
- Your application calls Model: function result
- Your application calls Person: "Your order arrives on December 3."
Step 7 of 7: The person gets an answer based on your data, not on what the model imagines.
- The person writes in natural language. Your application receives the text, like any other request.
- Your application sends the model the question and the description of the functions it can ask for: name, explanation, and input data.
- The model doesn't look anything up. It returns a request: the name of the function and its data in JSON.
- Your application decides to run the call. This is where you apply permissions and validation, like at any other entry point.
- Your service answers with typed data, just like it answers your REST API.
- Your application passes the result to the model, which now has real data to answer with.
- The person gets an answer based on your data, not on what the model imagines.
Two more ideas you'll see in every path:
- MCP (Model Context Protocol) is a standard for connecting AI applications to tools and data. You write an MCP server once and different clients use it. The current version of the specification is 2026-07-28. MCP standardizes the connection, but you still write, test, and protect the server. I explain it step by step in the MCP guide.
- Security changes shape. Someone can hide instructions in a text the model reads, so it asks for something it shouldn't. That's called prompt injection, and it's the first risk in the OWASP Top 10 for LLM applications. OWASP admits there's no foolproof defense. That's why the rule is to give each function the least privilege: start with read-only functions and ask for human approval for anything that changes data.
Java and .NET
Your advantage: banks, insurers, and governments run on Java and C#. They need you to connect AI in a secure, typed way, inside the systems that already exist.
Start with: Spring AI if you come
from Java. If you come from .NET,
Microsoft.Extensions.AI,
which gives you a common interface (IChatClient) to talk to any provider, and
Microsoft Agent Framework when you
need agents.
Later: LangChain4j in Java, with its own @Tool
annotation, and MCP in both languages.
Your first exercise: take a service you already have and expose it to the model as a tool. Here's the complete example with Spring AI 2.0. On the left, a regular service. On the right, the same service exposed to the model:
Before
/** El servicio que ya tienes: lo usan tu API REST y tus pantallas. */
@Service
public class PedidoService {
private final Map<String, EstadoDePedido> pedidos = Map.of(
"P-1001", new EstadoDePedido("P-1001", Estado.EN_CAMINO, "2026-12-03"),
"P-1002", new EstadoDePedido("P-1002", Estado.ENTREGADO, "2026-11-28"));
public Optional<EstadoDePedido> estadoDe(String numero) {
return Optional.ofNullable(pedidos.get(numero));
}
}After
/** El mismo servicio, expuesto al modelo. PedidoService no cambia ni una línea. */
@Component
public class HerramientasDePedidos {
private final PedidoService pedidos;
public HerramientasDePedidos(PedidoService pedidos) {
this.pedidos = pedidos;
}
@Tool(description = "Consulta el estado de un pedido por su número. Solo lee, no modifica nada.")
public EstadoDePedido estadoDelPedido(
@ToolParam(description = "Número de pedido, por ejemplo P-1001") String numero) {
return pedidos.estadoDe(numero)
.orElseThrow(() -> new IllegalArgumentException("No existe el pedido " + numero));
}
}PedidoService didn't change a single line. You added a thin class with @Tool: the description
tells the model what it's for, and @ToolParam explains the data it needs. The answer is a record,
so it arrives typed, not as a paragraph.
And this is how you check it, without calling any model. These tests ran with no network, in Docker:
private final ToolCallback herramienta =
ToolCallbacks.from(new HerramientasDePedidos(new PedidoService()))[0];
@Test
void elModeloRecibeUnNombreUnaDescripcionYUnEsquema() {
var definicion = herramienta.getToolDefinition();
assertThat(definicion.name()).isEqualTo("estadoDelPedido");
assertThat(definicion.description()).contains("Solo lee");
assertThat(definicion.inputSchema()).contains("\"numero\"", "\"required\"");
}
@Test
void laAppEjecutaLaLlamadaQueElModeloPide() {
// Esto es lo que devuelve el modelo: el nombre de la herramienta y sus argumentos en JSON.
// Quien ejecuta el método es tu aplicación, no el modelo.
String respuesta = herramienta.call("{\"numero\": \"P-1001\"}");
assertThat(respuesta).contains("\"estado\":\"EN_CAMINO\"", "\"entregaEstimada\":\"2026-12-03\"");
}
@Test
void unPedidoQueNoExisteFallaDeFormaControlada() {
assertThatThrownBy(() -> herramienta.call("{\"numero\": \"P-9999\"}"))
.isInstanceOf(ToolExecutionException.class)
.hasMessageContaining("No existe el pedido P-9999");
}The first test shows what the model sees: a name, a description, and a JSON schema of the input data. The second shows what your application executes when the model asks for the call. The third, that an order that doesn't exist fails in a controlled way instead of inventing an answer.
Role it points to: Agent Engineer at a large company, Solutions Architect, or Forward Deployed Engineer.
Going deeper
in .NET, Microsoft presents Agent Framework as the direct successor of Semantic Kernel and AutoGen, with a stable 1.0 since April 2026 and a migration guide. If your company already uses Semantic Kernel, it keeps working; for something new, start with Agent Framework. In Spring AI, structured output is "best effort": the model can return JSON that doesn't fit, so validate and retry. An advantage people sometimes miss: Spring AI and Microsoft.Extensions.AI separate your code from the model provider, and switching providers doesn't force a rewrite.
Front End and React
Your advantage: an AI answer doesn't have to be a block of text. You're the one who knows best how to design the way a person sees it.
Start with: Vercel's AI SDK (the ai package, version
7). It gives you three things that define a good AI interface today:
- Streaming: the answer arrives in pieces while it's generated, and you can show what the agent is doing ("Looking up the order…").
- Generative UI: when the model uses a function, your interface shows a React component with
the result instead of text. In the AI SDK you do it
with the tool parts of
useChat. - Human-in-the-loop: before an action that changes something, a person approves it. In version
7 you configure it with
toolApproval.
Later: LangGraph.js for long flows with pauses, Mastra, an agent framework in TypeScript, and Zod to validate that what the model returns has the shape you expect.
Your first exercise: a chat that looks up an order and shows a card, and that asks for approval before changing the delivery date. If you're still learning React, the series Learn React by Building a Real App gives you the foundation.
Role it points to: Agent Engineer. In some job postings you'll see it as AI Product Engineer.
Going deeper
if you see examples with needsApproval or with streamUI, they're from older
versions. In version 7, needsApproval was deprecated in favor of toolApproval, and the
documentation marks the React Server Components variant as experimental and recommends AI SDK UI
for production.
Mobile
Your advantage: the phone has a camera, a microphone, and location, and it can already run models offline. When data doesn't leave the device, privacy is easier to protect.
Start with: the model the system already ships.
- On iOS, the Foundation Models framework gives you access to the Apple Intelligence model on the device, with type-guided output and tool use. Core ML is for running your own models.
- On Android, ML Kit's GenAI APIs use Gemini Nano through AICore, on supported phones.
Later: LiteRT-LM to run open models on the device, and ONNX Runtime if you want the same model on iOS, Android, and React Native.
The decision you'll make most often is where each task runs:
On-device models are small. They're good at summarizing, classifying, or extracting data, not at reasoning over long documents. That's why real apps are usually hybrid: the phone first, and a server when the task outgrows it.
Your first exercise: a function that summarizes a note on the device and, if the text is too long, sends it to a server. If you come from iOS, the series Native iOS Engineering gives you a foundation.
Role it points to: Agent Engineer focused on the device. The title Edge AI Engineer exists, but it's uncommon.
Going deeper
the Foundation Models model has a small context window compared with a cloud model, and it's shared between input and output (Apple explains it in its forums). Read the size at runtime instead of hard-coding it. The model changes with system versions and you can't pin a version, so your evals need to run again when a new iOS comes out. On Android, the GenAI APIs only work with the app in the foreground and have a per-app quota.
Full-Stack
Your advantage: you already know how a piece of data travels from the click to the database and back. That end-to-end view is what an agent that touches several systems needs.
Start with: RAG (Retrieval-Augmented Generation). Before asking the model, you search your documents for the fragments that answer the question and pass them along. That way it answers with your data and not with what it remembers. You can do it in the PostgreSQL you already use, with pgvector: it stores documents as vectors to search them by meaning, and you combine it with Postgres text search so you don't lose exact words.
Later: an orchestrator for multi-step flows. They're different tools, not interchangeable:
- n8n builds flows visually, with AI nodes. It's fast for automating.
- Temporal runs flows in code that survive crashes and retries (durable execution). It's for long processes that can't lose their state.
- LangGraph models agents with state, pauses, and human approval.
And one skill that ties it all together: context engineering, deciding what information you give the model at each step, how much, and in what order. Anthropic explains it in this guide. Giving it less and better context usually gives better answers.
Your first exercise: a search tool that answers questions about your team's documents and cites where each answer came from. The advanced RAG guide takes you further.
Role it points to: Agent Engineer or Forward Deployed Engineer.
Python
Your advantage, and your challenge: you're in the language where almost the whole AI ecosystem is born. The challenge is standing out from thousands of people who only know how to call an API.
Start with: PydanticAI, from the Pydantic team. You ask the model for an output with a type, PydanticAI validates it and, if it doesn't fit, asks again.
Later:
- LangGraph or LlamaIndex for agents and RAG.
- LangSmith or Langfuse (open source) to see the traces of every call and run evals.
- vLLM only if your company hosts its own models: it's an inference server, not something you need to get started.
Your first exercise: a suite of evals for an agent: cases with an expected answer and a pass rate that's recalculated on every change.
Role it points to: Evals Engineer, LLMOps, or Agent Engineer.
When Is It Worth Learning Another Language?
Stay in your ecosystem, except in two cases:
- If you want to train or tune models (fine-tuning). The reference tools, like Hugging Face's Transformers and PEFT, are in Python and built on PyTorch.
- If you want to join a very early AI startup. Look at the job postings that interest you: many of the agent frameworks in this guide are born first in Python or TypeScript, and those companies tend to pick whatever lets them move fastest.
In every other case, your current language is an advantage, not a brake.
Your 4-Week Plan
Fear goes away by building. Don't buy ten courses: follow this plan, one week at a time.
Week 1. The building blocks. Learn what embeddings are (numbers that represent the meaning of a text, to search by similarity), function calling, JSON output, and MCP. You're done when you have one program that asks for JSON output and another where the model asks for one of your functions.
Week 2. Your project, with an agent. Take an application you already have and add an agent that understands a request in natural language, calls a real function in your code, and returns something useful. You're done when someone who isn't you uses it and gets what they asked for.
Week 3. Try to break it. Write between 20 and 50 cases with their expected answer: incomplete data, ambiguous questions, and prompt injection attempts. Measure the pass rate, fix, and measure again. There's no official number of cases; Anthropic's evaluation guide recommends preferring many cases that grade themselves over a few reviewed by hand. You're done when you have the before and after percentages.
Week 4. Make it visible. Write a README that tells the problem, the decisions, and the numbers: how long it takes, how much each request costs, what percentage it gets right, and what you did with the failures. You're done when someone can understand your judgment without talking to you.
At the end you don't have a new job. You have something better to start looking for one: a project that shows you know how to make AI reliable, not just use it.
Three Questions You'll Get in an Interview
- "How do you stop the agent from doing something it shouldn't?" The model only asks; your application decides. Read-only functions first, least privilege, and human approval for anything that changes data. You saw it in the shared piece.
- "How do you know your change didn't make quality worse?" With evals: a set of cases and a pass rate before and after. It's week 3 of the plan.
- "How much does each request cost, and what do you do if it goes up?" You measure tokens and time per request, send simple requests to a cheaper model, and cache what repeats. It's the LLMOps work from part 1.
What You Learned
What to take with you: every path shares one piece: the model asks and your code executes. From there, each stack has its tool to start with: Spring AI, Microsoft.Extensions.AI and Agent Framework, Vercel's AI SDK, the system models on mobile, pgvector, or PydanticAI. You don't need another language except to train models or join an early startup. And in four weeks you can have a project that shows your judgment.
What's Next
To go deeper into what you saw here:
- MCP: Connecting AI to Your Systems Without Giving It More Power Than It Needs.
- Advanced RAG Without the Myths.
- From Rules to Agents: The Generative AI Guide for People Who Code.
- And if you come from Java, the series Spring, from Beginner to Expert.
Artificial intelligence isn't coming to take your place as an engineer. It's asking you to go up one level. You already have the technical foundation; now it's time to connect the new pieces.
Sources
Checked on November 30, 2026.
- Anthropic, Tool use with Claude, Effective context engineering for AI agents (September 29, 2025), and Define success criteria and build evaluations.
- Model Context Protocol, 2026-07-28 specification.
- OWASP, LLM01: Prompt Injection and LLM06: Excessive Agency (Top 10 for LLM Applications, 2025).
- Spring AI, Tool Calling and Structured Output; LangChain4j, Tools.
- Microsoft, Microsoft.Extensions.AI, Microsoft Agent Framework, and migrating from Semantic Kernel.
- Vercel, AI SDK, Generative User Interfaces, Tools and Tool Calling, and the version 7 migration guide; LangGraph.js, interrupts; Mastra; Zod.
- Apple, Foundation Models, Core ML, and the forum thread on the model's context; Google, ML Kit GenAI and LiteRT-LM; ONNX Runtime.
- pgvector (Hybrid Search section); n8n, Advanced AI; Temporal, AI Cookbook; LangGraph.
- PydanticAI, LlamaIndex, LangSmith, Langfuse, vLLM, Hugging Face Transformers, and PEFT.