Import Run • AI Agent SDK
import_run: Write an exported run into “journal“ and return its run id.
import_run
Function
</div>
This function is defined in the portable module.
Write an exported run into `journal` and return its run id.
Refuses to import over an existing run unless `overwrite=True`: silently merging two runs’ events would produce a replay index that belongs to neither, and the failure would surface much later as a confusing resume.
Signature
def import_run(journal: RunJournal, blob: Dict[str, Any]) -> strParameters
ParamField
RunJournalNo description available.
ParamField
Dict[str, Any]No description available.
Returns
ResponseField
strThe result of the operation.
Uses
PortableRunErrorjournal.run_metaJournalEventjournal.delete_runjournal.open_runjournal.close_run
Used By
Source
View on GitHubpraisonaiagents/runtime/portable.py at line 85