> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: TaskStoppedEvent

> Generated from the public TypeScript API.

Terminal lifecycle event for a stopped runtime task, including its final status.

## Properties

### activeSessionId

```ts theme={null}
activeSessionId: string;
```

***

### agent

```ts theme={null}
agent: string;
```

***

### durationMs

```ts theme={null}
durationMs: number;
```

***

### error?

```ts theme={null}
optional error?: string;
```

***

### messageId

```ts theme={null}
messageId: string;
```

***

### partId

```ts theme={null}
partId: string;
```

***

### raw?

```ts theme={null}
optional raw?: unknown;
```

***

### sessionId

```ts theme={null}
sessionId: string;
```

***

### status

```ts theme={null}
status: "error" | "completed" | "interrupted";
```

***

### taskId

```ts theme={null}
taskId: string;
```

***

### title?

```ts theme={null}
optional title?: string;
```

***

### tool

```ts theme={null}
tool: string;
```

***

### type

```ts theme={null}
type: "task.stopped";
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.