Record LLM call (Kamy Trace)
trace_recordRecord one LLM call — prompt, output, provider, model, tokens, latency — into Kamy Trace, a signed retention ledger. Each record is hashed and signed at write time, so it can be produced later without the 'you could have edited this' objection. Reach for it when model calls need a reviewable history: regulated workflows, customer-facing generations, anything you may have to explain months later. Set status 'flagged' with status_detail on calls a human should revisit. Returns { id, content_sha256, signature, recorded_at, verify_url }. Requires a Kamy API key with the trace:record scope; each call consumes monthly Trace quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Up to 20 free-form labels. trace_search can filter on any one of them. | |
| model | Yes | Model identifier exactly as the provider reports it, e.g. 'claude-sonnet-4-6'. | |
| output | No | The model's response, verbatim. Any JSON value. | |
| prompt | No | The prompt / request you sent, verbatim. Any JSON value (string, array, object). | |
| status | No | Outcome. 'flagged' marks a call you want a human to review later. Defaults to 'ok'. | |
| feature | No | Product area the call belongs to, e.g. 'support_reply'. Filterable in trace_search. | |
| provider | Yes | Which model vendor served the call. Use 'custom' for anything self-hosted. | |
| latency_ms | No | Wall-clock duration of the call. | |
| input_tokens | No | Prompt tokens billed. | |
| output_tokens | No | Completion tokens billed. | |
| status_detail | No | Why the call was flagged or failed. Free text. |