Skip to main content

record_completed_run

Function
This function is defined in the last_run module.
Persist a pointer to the trace file of the just-completed run.

Signature

Parameters

Any
required
Path to the trace artifact (JSON or JSONL).
Optional
Optional run metadata (agent name, status, etc.).

Returns

Path
The path the pointer was written to.

Uses

  • resolve
  • Path
  • time.time
  • last_run_pointer_path
  • json.dumps

Source

View on GitHub

praisonaiagents/trace/last_run.py at line 60