Code that wraps an AI model with logic for chaining steps, handling errors, parsing output, and managing memory, turning a raw model into an app.
Technically: Frameworks and code that wrap raw LLM API calls with structured control flow: prompt templating, output parsing and validation, multi-step orchestration, memory management, tool routing, and retries. This bridges a model's raw text output and a reliable application, handling state across turns, branching on model decisions, and streaming. Examples include LangChain and DSPy.
Category: Prompting & Inference