Show in assist pipeline debug when intent is preferred and processed locally (#23115)

This commit is contained in:
Jan-Philipp Benecke 2024-12-04 09:52:48 +01:00 committed by GitHub
parent 06925f0716
commit 697a99f913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -104,12 +104,14 @@ interface PipelineIntentStartEvent extends PipelineEventBase {
data: {
engine: string;
language: string;
prefer_local_intents: boolean;
intent_input: string;
};
}
interface PipelineIntentEndEvent extends PipelineEventBase {
type: "intent-end";
data: {
processed_locally: boolean;
intent_output: ConversationResult;
};
}

View File

@ -307,6 +307,18 @@ export class AssistPipelineDebug extends LitElement {
</div>`
: ""}`
: ""}
<div class="row">
<div>Prefer handling locally</div>
<div>
${this.pipelineRun.intent.prefer_local_intents}
</div>
</div>
<div class="row">
<div>Processed locally</div>
<div>
${this.pipelineRun.intent.processed_locally}
</div>
</div>
${dataMinusKeysRender(
this.pipelineRun.intent,
INTENT_DATA