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

python
def import_run(journal: RunJournal, blob: Dict[str, Any]) -> str

Parameters

ParamField RunJournal

No description available.

ParamField Dict[str, Any]

No description available.

Returns

ResponseField str

The result of the operation.

Uses

  • PortableRunError
  • journal.run_meta
  • JournalEvent
  • journal.delete_run
  • journal.open_run
  • journal.close_run

Used By

Source

View on GitHub

praisonaiagents/runtime/portable.py at line 85