Agent instructions
2026 04 14 Langchain context engineering
Core directives and parameters used to define the persona, constraints, and operational behavior of an AI Agent.
Context Engineering
The practice of optimizing the context-window by strategically populating it with precise information at each stage of an agent’s trajectory.
- Essential Context Components:
- Instructions: Primary directives for task execution.
- External Knowledge: Retrieved data (e.g., RAG).
- tool-feedback: Observational data from Tool Use/environment interactions.
- Implementation: Frameworks like LangGraph provide the infrastructure to manage these injection strategies and agent state.
Sources: