kodeagent.tracer.AbstractObservation#

class kodeagent.tracer.AbstractObservation[source]#

Abstract interface for trace observations.

Represents a single node in a hierarchical trace tree. Can be a top-level trace, a nested span, or an LLM generation. Implements context manager protocol for use with ‘with’ statements.

__init__()#

Methods

__init__()

end(**kwargs)

Explicitly signal the end of the observation.

update(**kwargs)

Update observation properties during execution.