# AgentRunError API

Error raised when a harness run terminates with a serialized error.

---
Canonical: /handbook/api/classes/_purista_core.AgentRunError/
Source: AgentQueueBuilder/runtime/executor.ts
Format: Markdown for agents
---

Error raised when a harness run terminates with a serialized error.

Package: `@purista/core`

## Signature

```typescript
class AgentRunError
```

## Members

### Constructors

- `new constructor(error: { category: string; code: string; message: string; meta: Record<string, unknown>; retriable: boolean })`

### Properties

- `category: string`
- `code: string`
- `meta: Record<string, unknown>`
- `retriable: boolean`
