Create an agent
Create an agent with metadata, runtime configuration, and an optional file tree. Creation is atomic: either the agent is fully created or no state is persisted.
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
IANA timezone name (for example, America/Los_Angeles) stamped into the agent's runtime configuration when the agent is created or updated. The runtime uses this timezone to inject a localized current-date line into the agent's system prompt, so the agent reasons about dates in the user's local time. Optional. Defaults to UTC when omitted; invalid values fall back to UTC.
"America/Los_Angeles"
Query Parameters
Include the raw file map in the agent response. Accepted truthy values are true and 1.
Body
Human-readable agent name. Must not be blank.
Short agent description.
Model identifier used to run the agent. Use the form {provider}:{model_name}, for example openai:gpt-5.5. Values without a colon are interpreted as references to a saved Playground configuration, not as direct model identifiers.
"openai:gpt-5.5"
Agent visibility and sharing configuration. When omitted on create, defaults to personal identity, tenant visibility, and read tenant access.
Backend configuration for the agent. Use default when the agent does not need sandbox-specific backend behavior. Use thread_scoped_sandbox or agent_scoped_sandbox when the agent needs LangSmith sandbox resources for code execution, filesystem work, or long-running tasks. See Sandboxes overview.
Agent system prompt. Written to AGENTS.md.
Subagents. Each entry is written to subagents/<name>/AGENTS.md and, when provided, subagents/<name>/tools.json.
Inline skills. Each entry is written to skills/<name>/SKILL.md and supporting files.
Caller-defined key-value metadata attached to the agent.
Raw file map for paths not covered by typed fields. Keys are relative file paths. Setting a typed field and the corresponding files entry returns 422.
Response
Agent created.
Agent visibility and sharing configuration. When omitted on create, defaults to personal identity, tenant visibility, and read tenant access.
Backend configuration for the agent. Use default when the agent does not need sandbox-specific backend behavior. Use thread_scoped_sandbox or agent_scoped_sandbox when the agent needs LangSmith sandbox resources for code execution, filesystem work, or long-running tasks. See Sandboxes overview.
Revision token for the latest file tree commit.
Agent system prompt parsed from AGENTS.md.
Raw file map for paths not covered by typed fields. Keys are relative file paths. Setting a typed field and the corresponding files entry returns 422.

