Skip to main content
Ancha Trace IR is the one format Ancha keeps traces in. OTLP traces are converted to it, ancha import accepts it, ancha runs export writes it, and Download what Ancha stored gives it back. A file is JSON Lines: a header on the first line, then one record per line in time order. One file can hold one trace.

Records

Every record has kind and t, an ISO 8601 time. Most have id, the span id.

call: an API call your agent made

inbound: a webhook your agent received

llm: a model call

input holds the user and assistant messages the call was sent, in order. System instructions are never kept. The first user message of the first model call is what Ancha takes as your agent’s task.

tool: a tool your agent called

outcome: how the episode ended

Rules

  • Write records in time order.
  • A file whose first line is not an ancha.trace/v1 header, or with a record of another kind or without a valid t, is refused with the line at fault.
  • Credentials, emails and phone numbers are removed or replaced before a trace is stored. See Trace privacy.

Produce it