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
Pythonlangsmith_openapi_clientresourcessessionsAsyncSessionsResourceresolve
Method●Since v0.14

resolve

Copy
resolve(
  self,
  *,
  kind: Literal['AGENT', 'EXPERIMENT', 'EVALUATOR'],
  id: str
View source on GitHub
|
Omit
=
omit
,
environment
:
Literal
[
'LOCAL'
,
'DEVELOPMENT'
,
'STAGING'
,
'PRODUCTION'
]
|
Omit
=
omit
,
extra_headers
:
Headers
|
None
=
None
,
extra_query
:
Query
|
None
=
None
,
extra_body
:
Body
|
None
=
None
,
timeout
:
float
|
httpx
.
Timeout
|
None
|
NotGiven
=
not_given
)
->
SessionResolveResponse

Parameters

NameTypeDescription
kind*Literal['AGENT', 'EXPERIMENT', 'EVALUATOR']

The kind of address.

idstr | Omit
Default:omit

The Agent's user-assigned id for AGENT, or the experiment's id for EXPERIMENT. Not set for EVALUATOR.

environmentLiteral['LOCAL', 'DEVELOPMENT', 'STAGING', 'PRODUCTION'] | Omit
Default:omit
extra_headersHeaders | None
Default:None
extra_queryQuery | None
Default:None
extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

Beta: This endpoint is in active development and may change without notice. Returns the tracing project (session) an address names. An address is an AGENT (id and environment), an EXPERIMENT (id), or an EVALUATOR (no id: evaluator traces share one project per workspace). Send kind and environment in upper case, as listed; they are matched case-insensitively, while the Agent id is case-sensitive. An address that does not exist, or whose project you cannot read, is a 404. Pass the returned session_id to any endpoint that takes a project (session) ID. This is not supported on a BYOC data plane yet, and is a 501 there.

The Agent environment. Only set for AGENT.

Send extra headers

Add additional query parameters to the request

Add additional JSON properties to the request

Override the client-level default timeout for this request, in seconds