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
Pythonlangsmithtypessession_create_v2_paramsSessionCreateV2Params
Class●Since v0.15

SessionCreateV2Params

Copy
SessionCreateV2Params()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
typeRequired[Literal['PROJECT', 'AGENT', 'EXPERIMENT']]
upsertbool
idstr
default_dataset_idstr
descriptionstr
end_timeAnnotated[Union[str, datetime], PropertyInfo(format='iso8601')]
evaluator_keysSequenceNotStr[str]
extraDict[str, object]
kicked_off_bystr
longlived_ttl_daysOptional[int]
namestr
num_examplesint
num_repetitionsint
reference_dataset_idstr
start_timeAnnotated[Union[str, datetime], PropertyInfo(format='iso8601')]
tag_value_idsSequenceNotStr[str]
trace_tierLiteral['LONG_LIVED', 'SHORT_LIVED']
attribute
type: Required[Literal['PROJECT', 'AGENT', 'EXPERIMENT']]

Type identifies a tracing project, Agent tracing project, or experiment.

attribute
upsert: bool

Update an existing session with the same name

attribute
id: str
attribute
default_dataset_id: str
attribute
description: str
attribute
end_time: Annotated[Union[str, datetime], PropertyInfo(format='iso8601')]
attribute
evaluator_keys: SequenceNotStr[str]
attribute
extra: Dict[str, object]
attribute
kicked_off_by: str
attribute
longlived_ttl_days: Optional[int]

LonglivedTTLDays overrides long-lived trace retention.

Null restores the workspace default.

attribute
name: str
attribute
num_examples: int
attribute
num_repetitions: int
attribute
reference_dataset_id: str
attribute
start_time: Annotated[Union[str, datetime], PropertyInfo(format='iso8601')]
attribute
tag_value_ids: SequenceNotStr[str]
attribute
trace_tier: Literal['LONG_LIVED', 'SHORT_LIVED']