From 697a99f913c89d15cf120ffa145d20723caf602e Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Wed, 4 Dec 2024 09:52:48 +0100 Subject: [PATCH] Show in assist pipeline debug when intent is preferred and processed locally (#23115) --- src/data/assist_pipeline.ts | 2 ++ .../debug/assist-render-pipeline-run.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/data/assist_pipeline.ts b/src/data/assist_pipeline.ts index c0c8b4b788c3..0623049a0fc9 100644 --- a/src/data/assist_pipeline.ts +++ b/src/data/assist_pipeline.ts @@ -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; }; } diff --git a/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts b/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts index b3c2a8629678..9d3bbf81eac5 100644 --- a/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts +++ b/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts @@ -307,6 +307,18 @@ export class AssistPipelineDebug extends LitElement { ` : ""}` : ""} +
+
Prefer handling locally
+
+ ${this.pipelineRun.intent.prefer_local_intents} +
+
+
+
Processed locally
+
+ ${this.pipelineRun.intent.processed_locally} +
+
${dataMinusKeysRender( this.pipelineRun.intent, INTENT_DATA