Wraps a 3-arg [TriFunction] with LangSmith tracing.
public TriFunction<
I1,
I2,
I3,
O
> traceTriFunction(TriFunction<I1, I2, I3, O> block, TraceConfig config)Wraps a 3-arg [TriFunction] with LangSmith tracing. This is the recommended entry point for Java callers (3-arg). It avoids the overload-resolution ambiguity that can occur with [traceable] when Kotlin function types are on the classpath. Kotlin callers should prefer [traceable] directly.
TraceConfig config = TraceConfig.builder()
.name("combine3")
.client(LangsmithOkHttpClient.fromEnv())
.build();
TriFunction traced =
Tracing.traceTriFunction((a, b, c) -> a + " " + b + " " + c, config);
String result = traced.apply("a", "b", "c");| Name | Type | Description |
|---|---|---|
block* | TriFunction<I1, I2, I3, O> | |
config* | TraceConfig |