Skip to main content
The agent definition selects the model and core capabilities of a managed deep agent.
Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.
The agent entry lives at the project root:
For the full project layout, see Project structure. To define the agent, use define_deep_agent:
Configure the system prompt, skills, memory, sandbox, identity, channels, and schedules through their project files rather than the agent definition. See Project structure. define_deep_agent does not compile an agent. It returns a definition, and the managed runtime compiles it with create_deep_agent at deploy time. The parameters below are the create_deep_agent surface without the ones the runtime owns. See Relationship to Deep Agents.

Parameters

Use LLM Gateway

You can use LLM Gateway to apply rate limits, fallbacks, and other policies to model calls. Prefix the gateway model ID with langsmith::
Gateway model IDs use a slash between provider and model (langsmith:provider/model-name). Model strings that call a provider directly use a colon (provider:model-name).
The gateway routes each request by model ID. moonshotai/kimi-k3 is a LangChain-hosted model, so it requires no provider secret and draws on Gateway Credits. A model ID that starts with a provider your workspace has configured, such as anthropic/claude-opus-5, uses that provider secret and bills to your own provider account. For more information, see LLM Gateway. To scaffold a project that uses Gateway from the start, pass --gateway when initializing: