LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithaddressagent
Function●Since v0.14

agent

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

Copy
agent(
    agent_id: str,
    agent_environment: str,
) -> Address
View source on GitHub

Parameters

NameTypeDescription
agent_id*str
agent_environment*str

The agent's ID: 1 to 63 lowercase ASCII letters, digits or hyphens, starting with a letter and ending with a letter or digit. The server creates the agent on first use.

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