Skip to content

ActivityTraceChatMessage Type documentation

Related activities grouped under a shared collapsible heading. The latest trace stays expanded until a user message follows it.
Properties
Overrides automatic expansion for this trace.
autoExpand?: boolean
Activities in execution order.
messages: ActivityChatMessage[]
Activity trace name.
name: TranslatableString
type: "activity-trace"

Types Documentation

Progress or intermediate activity shown between chat messages.
Properties
Overrides automatic expansion for this activity.
autoExpand?: boolean
Overrides automatic input expansion. Record keys can be selected individually.
autoExpandInputs?: (boolean | string[])
Overrides automatic output expansion.
autoExpandOutputs?: boolean
Reasoning content rendered directly in the activity.
content?: (string | Signal<string>)
Alternative icon. Set to false to show the generic activity marker.
icon?: (string | false)
Activity inputs. Record entries are rendered as individual message parts.
input?: (string | string[] | Record<string, string>)
Label for the input arguments section.
inputArgumentsLabel?: TranslatableString
Whether the activity is still running.
loading?: (boolean | Signal<boolean>)
Nested activities.
messages?: ActivityChatMessage[]
Activity name. Defaults to the reasoning label for content-only activities.
name?: TranslatableString
Output from the activity.
output?: string
Label for the output section.
outputLabel?: TranslatableString
type: "activity"
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.

Except where otherwise noted, content on this site is licensed under MIT License.