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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithaddressagent_address
Function●Since v0.16

agent_address

Construct an agent address with its kind and environment.

Copy
agent_address(
    id: str,
    environment: str,
) -> AgentAddress

Used in Docs

  • How to create and manage datasets programmatically
  • Metadata parameters reference
  • Optimize a classifier
  • Query threads using the SDK
  • Query traces using the SDK
View source on GitHub

Parameters

NameTypeDescription
id*str
environment*str

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

Local, development, staging or production.