Struct ChatActivityPart
One entry in an agent's activity timeline.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public readonly struct ChatActivityPart
Constructors
ChatActivityPart(ChatActivityPartKind, string, bool, int)
Constructs a part.
Declaration
public ChatActivityPart(ChatActivityPartKind kind, string text, bool pending = false, int elapsedMs = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| ChatActivityPartKind | kind | What the entry reports. |
| string | text | The row's text. |
| bool | pending | Whether a tool call is still running. |
| int | elapsedMs | Duration in milliseconds, or a negative value if unmeasured. |
ChatActivityPart(ChatActivityPartKind, string, string, bool, int)
Constructs a part that names its tool.
Declaration
public ChatActivityPart(ChatActivityPartKind kind, string text, string toolName, bool pending, int elapsedMs)
Parameters
| Type | Name | Description |
|---|---|---|
| ChatActivityPartKind | kind | What the entry reports. |
| string | text | The row's text. |
| string | toolName | The tool's name, for a Tool part. |
| bool | pending | Whether a tool call is still running. |
| int | elapsedMs | Duration in milliseconds, or a negative value if unmeasured. |
Properties
elapsedMs
Wall-clock duration of the entry, in milliseconds. Negative means "not measured", which keeps it out of both the row badge and the header total.
Declaration
public int elapsedMs { get; }
Property Value
| Type | Description |
|---|---|
| int |
kind
What this entry reports.
Declaration
public ChatActivityPartKind kind { get; }
Property Value
| Type | Description |
|---|---|
| ChatActivityPartKind |
pending
Whether a tool call is still waiting on its result. Ignored for a thinking part.
Declaration
public bool pending { get; }
Property Value
| Type | Description |
|---|---|
| bool |
text
Declaration
public string text { get; }
Property Value
| Type | Description |
|---|---|
| string |
toolName
The tool a Tool part called, when known. A running timeline names its newest call in flight by it, and foldRowsByKind folds calls of the same tool into one row. Null for a thinking part.
Declaration
public string toolName { get; }
Property Value
| Type | Description |
|---|---|
| string |