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.
Header
Records
Every record haskind 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/v1header, or with a record of anotherkindor without a validt, is refused with the line at fault. - Credentials, emails and phone numbers are removed or replaced before a trace is stored. See Trace privacy.