Controls how the parent [RunTree] is resolved for a traced run.
The name of the run, displayed in LangSmith..
The name of the run, displayed in LangSmith.
The LangSmith client used to post runs.
The LangSmith client used to post runs. Required at the root of a trace.
The type of run (defaults to [RunType.CHAIN])..
The type of run (defaults to [RunType.CHAIN]).
Metadata to attach to the run..
Metadata to attach to the run.
Tags for filtering in LangSmith..
Tags for filtering in LangSmith.
The LangSmith project name.
The LangSmith project name. Inherited by children if not set.
The [ExecutorService] for background run posting.
The [ExecutorService] for background run posting. Inherited by children if not set.
Whether tracing is active.
Whether tracing is active. Inherited by children if not set.
Typed processors for transforming inputs/outputs before they are recorded..
Typed processors for transforming inputs/outputs before they are recorded.
Sets the parent [RunTree] for this run.
Sets the parent [RunTree] for this run.
Pass a [RunTree] to attach this run as a child — useful for cross-thread context
propagation. Pass null to force a new root trace, ignoring any parent that may be
active on the current thread.
Force a new root trace — no parent, even if one exists on the thread..
Use the given [RunTree] as the explicit parent..
Creates a new [Builder] for constructing a [TraceConfig]..
Returns a new [Builder] pre-populated with the values from this config..
The name of the run, displayed in LangSmith..
The LangSmith client used to post runs.
The type of run (defaults to [RunType.CHAIN])..
Metadata to attach to the run..
Tags for filtering in LangSmith..
The LangSmith project name.
The [ExecutorService] for background run posting.
Whether tracing is active.
Typed processors for transforming inputs/outputs before they are recorded..
Sets the parent [RunTree] for this run.
Builds the [TraceConfig]..
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg function with LangSmith tracing (Kotlin).
Wraps a no-arg [Supplier] with LangSmith tracing.
Wraps a 1-arg [Function] with LangSmith tracing.
Wraps a 2-arg [BiFunction] with LangSmith tracing.
Wraps a 3-arg [TriFunction] with LangSmith tracing.
Controls how the parent [RunTree] is resolved for a traced run.
(parent) — use the given [RunTree] as the parent, regardless of thread context.() — force a new root trace, ignoring any active thread context.TraceConfig.builder().parent(parent).build(); // child of parent
TraceConfig.builder().parent(null).build(); // new root trace
// .parent() not called // auto-resolve from thread