@if (reasoning(); as reasoning) {
@if (expandReason()) { } @else { }
{{ 'PAC.Chat.Reasoning' | translate: { Default: 'Reasoning' } }}
@if (expandReason()) { @for (item of reasoning; track item.id) { } }
} @for (chunk of contents(); track $index) { @switch (chunk.type) { @case ('text') { } @case ('component') { @if (chunk.data.category === 'Tool') { @if (chunk.data.type === contextCompressionComponentType) { } @else { } } @else {
{{ 'PAC.Xpert.Component' | translate: { Default: 'Component' } }}
} } @default {
Unsupport chunk type: {{ chunk.type }}
} } } @if (thirdPartyMessage()) {
{{ 'PAC.Xpert.ThirdPartyMessage' | translate: { Default: 'Third-party platform message' } }}

{{ thirdPartyMessage() | json }}

}