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
JavaScriptlangsmithindexAgentAddress
Class●Since v0.14

AgentAddress

(beta) The address of an agent's environment.

Copy
class AgentAddress

Example

Copy
new AgentAddress("customer-support", "production");

Constructors

constructor
constructor→ AgentAddress

Properties

property
environment: Environment

Always lowercase.

property
id: string

Methods

method
toApiAddress→ ApiAddress

The address in the backend's form.

method
fromEnv→ AgentAddress | undefined

Read the agent named by LANGSMITH_AGENT_ID and LANGSMITH_AGENT_ENVIRONMENT; undefined if neither is set.

View source on GitHub