LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithaddressagent
Function●Since v0.14

agent

(beta) Build the address of an agent's environment.

Copy
agent(
  agentId: string,
  agentEnvironment: Environment | string  __type
): string | string | string | string
View source on GitHub

Parameters

NameTypeDescription
agentId*string
agentEnvironment*Environment | string & __type

1 to 63 lowercase ASCII letters, digits or hyphens, starting with a letter and ending with a letter or digit.

One of local, development, staging or production, in any case.