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

# end_turn

# `marvin.engine.end_turn`

## Classes

### `DelegateToActor`

```python theme={null}
class DelegateToActor()
```

### `EndTurn`

```python theme={null}
class EndTurn()
```

**Methods:**

* **`run`**
  ```python theme={null}
  def run(self, thread: Thread, actor: Actor)
  ```

### `MarkTask`

```python theme={null}
class MarkTask()
```

### `MarkTaskFailed`

```python theme={null}
class MarkTaskFailed()
```

### `MarkTaskSkipped`

```python theme={null}
class MarkTaskSkipped()
```

### `MarkTaskSuccessful`

```python theme={null}
class MarkTaskSuccessful()
```

### `PlanSubtasks`

```python theme={null}
class PlanSubtasks()
```

### `PostMessage`

```python theme={null}
class PostMessage(message: str)
```

Post a message to the thread.

**Methods:**

* **`run`**
  ```python theme={null}
  def run(self, thread: Thread, actor: Actor)
  ```

## Functions

### `create_delegate_to_actor`

```python theme={null}
def create_delegate_to_actor(delegate_actor: Actor, team: Team | None = None) -> type[DelegateToActor]
```

### `create_mark_task_failed`

```python theme={null}
def create_mark_task_failed(mark_task: Task[Any]) -> type[MarkTaskFailed]
```

### `create_mark_task_skipped`

```python theme={null}
def create_mark_task_skipped(mark_task: Task[Any]) -> type[MarkTaskSkipped]
```

### `create_mark_task_successful`

```python theme={null}
def create_mark_task_successful(mark_task: Task[Any]) -> type[MarkTaskSuccessful]
```

### `create_plan_subtasks`

```python theme={null}
def create_plan_subtasks(parent_task: Task[Any]) -> type[PlanSubtasks]
```

***

**Parent Module:** [`engine`](marvin-engine)
