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_clientresourcesdatasetsrunsAsyncRunsResourcecreate
Method●Since v0.9

create

Copy
create(
  self,
  dataset_id: str,
  *,
  session_ids: SequenceNotStr[str
View source on GitHub
]
,
format
:
Optional
[
Literal
[
'csv'
]
]
|
Omit
=
omit
,
comparative_experiment_id
:
Optional
[
str
]
|
Omit
=
omit
,
example_ids
:
Optional
[
SequenceNotStr
[
str
]
]
|
Omit
=
omit
,
filters
:
Optional
[
Dict
[
str
,
SequenceNotStr
[
str
]
]
]
|
Omit
=
omit
,
include_annotator_detail
:
bool
|
Omit
=
omit
,
limit
:
Optional
[
int
]
|
Omit
=
omit
,
offset
:
int
|
Omit
=
omit
,
preview
:
bool
|
Omit
=
omit
,
sort_params
:
Optional
[
SortParamsForRunsComparisonViewParam
]
|
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
)
->
Optional
[
RunCreateResponse
]

Parameters

NameTypeDescription
formatOptional[Literal['csv']] | Omit
Default:omit

Response format, e.g., 'csv'

extra_headersHeaders | None
Default:None

Send extra headers

extra_queryQuery | None
Default:None
extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

Fetch examples for a dataset, and fetch the runs for each example if they are associated with the given session_ids.

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