# startup_error_from_output

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_startup_error/startup_error_from_output)

Restore a typed recovery error, falling back to the ordinary log summary.

## Signature

```python
startup_error_from_output(
    output: str,
    fallback: str,
) -> Exception
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `output` | `str` | Yes | Server subprocess output containing startup markers. |
| `fallback` | `str` | Yes | Error text for legacy, unknown, or malformed markers. |

## Returns

`Exception`

A known model recovery error or a `RuntimeError` with the fallback text.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/_startup_error.py#L81)