Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/data/assist_pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading