# ActivityTraceChatMessage Type documentation

## TypeScript declaration

### [ActivityTraceChatMessage](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L100-L108>)

**Kind:** interface

```
import type { ActivityTraceChatMessage } from '@siemens/element-ng/chat-messages';
```

Related activities grouped under a shared collapsible heading. The latest trace stays expanded until a user message follows it.

```
interface ActivityTraceChatMessage
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [autoExpand](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L107-L107>) (optional) | `boolean` | Overrides automatic expansion for this trace. |
| [messages](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L105-L105>) | `ActivityChatMessage[]` | Activities in execution order. |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L103-L103>) | `TranslatableString` | Activity trace name. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L101-L101>) | `"activity-trace"` |  |

### Types Documentation

### [ActivityChatMessage](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L68-L94>)

**Kind:** interface

```
import type { ActivityChatMessage } from '@siemens/element-ng/chat-messages';
```

Progress or intermediate activity shown between chat messages.

```
interface ActivityChatMessage
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [autoExpand](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L89-L89>) (optional) | `boolean` | Overrides automatic expansion for this activity. |
| [autoExpandInputs](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L91-L91>) (optional) | `boolean \| string[]` | Overrides automatic input expansion. Record keys can be selected individually. |
| [autoExpandOutputs](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L93-L93>) (optional) | `boolean` | Overrides automatic output expansion. |
| [content](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L81-L81>) (optional) | `string \| Signal<string>` | Reasoning content rendered directly in the activity. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L85-L85>) (optional) | `string \| false` | Alternative icon. Set to false to show the generic activity marker. |
| [input](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L73-L73>) (optional) | `string \| string[] \| Record<string, string>` | Activity inputs. Record entries are rendered as individual message parts. |
| [inputArgumentsLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L75-L75>) (optional) | `TranslatableString` | Label for the input arguments section. |
| [loading](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L83-L83>) (optional) | `boolean \| Signal<boolean>` | Whether the activity is still running. |
| [messages](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L87-L87>) (optional) | `ActivityChatMessage[]` | Nested activities. |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L71-L71>) (optional) | `TranslatableString` | Activity name. Defaults to the reasoning label for content-only activities. |
| [output](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L77-L77>) (optional) | `string` | Output from the activity. |
| [outputLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L79-L79>) (optional) | `TranslatableString` | Label for the output section. |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/chat-messages/chat-message.model.ts#L69-L69>) | `"activity"` |  |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
