<a id="camel.societies.workforce.workforce_callback"></a>

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback"></a>

## WorkforceCallback

```python
class WorkforceCallback(ABC):
```

Interface for recording workforce lifecycle events.

Implementations should persist or stream events as appropriate.

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback._get_color_message"></a>

### _get_color_message

```python
def _get_color_message(self, event: LogEvent):
```

Gets a colored message for a log event.

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_message"></a>

### log_message

```python
def log_message(self, event: LogEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_stream_chunk"></a>

### log_stream_chunk

```python
def log_stream_chunk(self, event: StreamChunkEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_created"></a>

### log_task_created

```python
def log_task_created(self, event: TaskCreatedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_decomposed"></a>

### log_task_decomposed

```python
def log_task_decomposed(self, event: TaskDecomposedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_assigned"></a>

### log_task_assigned

```python
def log_task_assigned(self, event: TaskAssignedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_started"></a>

### log_task_started

```python
def log_task_started(self, event: TaskStartedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_updated"></a>

### log_task_updated

```python
def log_task_updated(self, event: TaskUpdatedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_completed"></a>

### log_task_completed

```python
def log_task_completed(self, event: TaskCompletedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_task_failed"></a>

### log_task_failed

```python
def log_task_failed(self, event: TaskFailedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_worker_created"></a>

### log_worker_created

```python
def log_worker_created(self, event: WorkerCreatedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_worker_deleted"></a>

### log_worker_deleted

```python
def log_worker_deleted(self, event: WorkerDeletedEvent):
```

<a id="camel.societies.workforce.workforce_callback.WorkforceCallback.log_all_tasks_completed"></a>

### log_all_tasks_completed

```python
def log_all_tasks_completed(self, event: AllTasksCompletedEvent):
```
