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:
You can also use agent.tsx. For the full project layout, see Project structure. To define the agent, use defineDeepAgent:
Configure the system prompt, skills, memory, sandbox, identity, channels, and schedules through their project files rather than the agent definition. See Project structure.

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: