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

# Camel.societies.workforce.workforce callback

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

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

## WorkforceCallback

```python theme={"system"}
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" />

### \_get\_color\_message

```python theme={"system"}
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" />

### log\_message

```python theme={"system"}
def log_message(self, event: LogEvent):
```

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

### log\_task\_created

```python theme={"system"}
def log_task_created(self, event: TaskCreatedEvent):
```

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

### log\_task\_decomposed

```python theme={"system"}
def log_task_decomposed(self, event: TaskDecomposedEvent):
```

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

### log\_task\_assigned

```python theme={"system"}
def log_task_assigned(self, event: TaskAssignedEvent):
```

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

### log\_task\_started

```python theme={"system"}
def log_task_started(self, event: TaskStartedEvent):
```

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

### log\_task\_updated

```python theme={"system"}
def log_task_updated(self, event: TaskUpdatedEvent):
```

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

### log\_task\_completed

```python theme={"system"}
def log_task_completed(self, event: TaskCompletedEvent):
```

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

### log\_task\_failed

```python theme={"system"}
def log_task_failed(self, event: TaskFailedEvent):
```

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

### log\_worker\_created

```python theme={"system"}
def log_worker_created(self, event: WorkerCreatedEvent):
```

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

### log\_worker\_deleted

```python theme={"system"}
def log_worker_deleted(self, event: WorkerDeletedEvent):
```

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

### log\_all\_tasks\_completed

```python theme={"system"}
def log_all_tasks_completed(self, event: AllTasksCompletedEvent):
```
