Instructions define the agent’s behavior. They make up the core of the agent’s system prompt. You can define them in a simple markdown file and they are picked up automatically by the agent. 托管深度代理目前处于私有测试阶段,仅在LangSmith Cloud的美国区域提供。加入等待列表以申请访问权限。

Project structure

The instructions.md file lives at the project root:

Add instructions

Create or modify instructions.md:
instructions.md
Use this file to define the agent’s role, behavior, constraints, and guidance for using its tools.

How the agent uses instructions

Instructions are inserted into the agents system prompt on every run. They are always present and help guide the agents behavior.

Syncing to Context Hub

When you run mda deploy to deploy the agent, instructions are automatically synced to the agent’s Context Hub repo. You can then edit the instructions in the LangSmith UI and have your changes automatically propagated to the agent.

How instructions compare to other concepts

Use skills for task-specific procedures that the agent loads only when relevant. Use memory for knowledge the agent learns and retains across threads.