agentskit.js

createTraceTracker

Auto-generated API reference for createTraceTracker.

Function: createTraceTracker()

createTraceTracker(callbacks): object

Defined in: observability/src/trace-tracker.ts:58

Builds nested spans from a sequential AgentEvent stream.

Assumption: events for the same kind (llm/tool/delegate) are sequential and non-interleaved. AgentEvent has no correlation id, so this tracker uses a LIFO stack and does not support parallel same-kind operations.

#Parameters

#callbacks

TraceTrackerCallbacks

#Returns

object

#flush()

flush(): void

#Returns

void

#handle()

handle(event): void

#Parameters

event

AgentEvent

#Returns

void

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.