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
PythonlangsmithresourcessessionsAsyncSessionsResourcelist_v2
Method●Since v0.15

list_v2

Copy
list_v2(
  self,
  *,
  id: SequenceNotStr[str
View source on GitHub
]
|
Omit
=
omit
,
cursor
:
str
|
Omit
=
omit
,
dataset_version
:
Union
[
str
,
datetime
]
|
Omit
=
omit
,
filter
:
str
|
Omit
=
omit
,
include_facets
:
bool
|
Omit
=
omit
,
include_stats
:
bool
|
Omit
=
omit
,
metadata
:
str
|
Omit
=
omit
,
name
:
str
|
Omit
=
omit
,
name_contains
:
str
|
Omit
=
omit
,
page_size
:
int
|
Omit
=
omit
,
reference_dataset_id
:
SequenceNotStr
[
str
]
|
Omit
=
omit
,
sort_by
:
Literal
[
'NAME'
,
'START_TIME'
,
'LAST_RUN_START_TIME'
,
'ERROR_RATE'
,
'LATENCY_P50'
,
'LATENCY_P99'
,
'FEEDBACK'
]
|
Omit
=
omit
,
sort_by_feedback_key
:
str
|
Omit
=
omit
,
sort_by_feedback_source
:
Literal
[
'RUN'
,
'SESSION'
]
|
Omit
=
omit
,
sort_order
:
Literal
[
'asc'
,
'desc'
]
|
Omit
=
omit
,
stats_filter
:
str
|
Omit
=
omit
,
stats_select
:
SequenceNotStr
[
str
]
|
Omit
=
omit
,
stats_start_time
:
Union
[
str
,
datetime
]
|
Omit
=
omit
,
tag_value_id
:
SequenceNotStr
[
str
]
|
Omit
=
omit
,
type
:
List
[
Literal
[
'PROJECT'
,
'AGENT'
,
'EXPERIMENT'
]
]
|
Omit
=
omit
,
use_approx_stats
:
bool
|
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
)
->
AsyncPaginator
[
Session
,
AsyncItemsCursorGetPagination
[
Session
]
]

Parameters

NameTypeDescription
idSequenceNotStr[str] | Omit
Default:omit

Only return projects with these IDs

cursorstr | Omit
Default:omit

next_cursor from the previous page; omit for the first page

dataset_versionUnion[str, datetime] | Omit
Default:omit
filterstr | Omit
Default:omit
include_facetsbool | Omit
Default:omit
include_statsbool | Omit
Default:omit
metadatastr | Omit
Default:omit
namestr | Omit
Default:omit
name_containsstr | Omit
Default:omit
page_sizeint | Omit
Default:omit
reference_dataset_idSequenceNotStr[str] | Omit
Default:omit
sort_byLiteral['NAME', 'START_TIME', 'LAST_RUN_START_TIME', 'ERROR_RATE', 'LATENCY_P50', 'LATENCY_P99', 'FEEDBACK'] | Omit
Default:omit
sort_by_feedback_keystr | Omit
Default:omit
sort_by_feedback_sourceLiteral['RUN', 'SESSION'] | Omit
Default:omit
sort_orderLiteral['asc', 'desc'] | Omit
Default:omit
stats_filterstr | Omit
Default:omit
stats_selectSequenceNotStr[str] | Omit
Default:omit
stats_start_timeUnion[str, datetime] | Omit
Default:omit
tag_value_idSequenceNotStr[str] | Omit
Default:omit
typeList[Literal['PROJECT', 'AGENT', 'EXPERIMENT']] | Omit
Default:omit
use_approx_statsbool | 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

Returns a page of the workspace's tracing projects and experiments.

Pass the response's next_cursor as cursor to fetch the next page; next_cursor is null on the last page. A cursor is valid only with the same query parameters as the request that returned it.

Only return experiments run against this dataset version (RFC 3339 timestamp)

Filter expression, for example eq(name, 'my-project')

Include run facets

Include run statistics

JSON object the project metadata must contain

Only return the project with this exact name

Only return projects whose name contains this substring

Number of projects per page

Only return experiments run against these dataset IDs

Sort column. FEEDBACK requires reference_dataset_id

Feedback key to sort by; required when sort_by is FEEDBACK

Where the sort feedback is recorded; defaults to RUN when sort_by is FEEDBACK

Sort direction

Run filter expression that scopes the statistics

Statistics to include when include_stats is true; defaults to all

Only aggregate statistics at or after this time, within the last 31 days

Only return projects tagged with all of these tag value IDs

Only return projects of these types

Compute statistics from pre-aggregated data, which is faster but up to an hour stale

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