> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Import Run Json • AI Agent SDK

> import_run_json: ``import_run`` from a JSON string.

# import\_run\_json

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**portable**](../modules/portable) module.

`import_run` from a JSON string.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def import_run_json(journal: RunJournal, text: str) -> str
```

## Parameters

<ParamField query="journal" type="RunJournal" required={true}>
  No description available.
</ParamField>

<ParamField query="text" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Uses

* `json.loads`
* `PortableRunError`
* `import_run`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/portable.py#L183">
  `praisonaiagents/runtime/portable.py` at line 183
</Card>
