kodeagent.tracer.LangSmithTracerManager#

class kodeagent.tracer.LangSmithTracerManager[source]#

LangSmith implementation of TracerManager.

Uses LangSmith RunTree to manage hierarchical runs.

Initialize the LangSmith client.

__init__() None[source]#

Initialize the LangSmith client.

Methods

__init__()

Initialize the LangSmith client.

flush()

Flush LangSmith runs.

start_generation(parent, name, input_data)

Start a nested LLM generation.

start_span(parent, name, input_data)

Start a nested span under a parent observation.

start_trace(name, input_data)

Start a new trace with LangSmith.