Class EmbedHostBuilder

java.lang.Object
com.inductiveautomation.ignition.designer.ai.embed.EmbedHostBuilder

public final class EmbedHostBuilder extends Object
Fluent builder for an EmbedHost whose composer and renderer are host-specific. Obtained through EmbedHost.builder().

Prefer EmbedHost.forTextEditor(TextlikeComponent) / EmbedHost.forTextEditorWithInsert(TextlikeComponent) for plain text editors; reach for this builder when the host composes its own prompt and renders replies into a non-editor surface.

EmbedHost host = EmbedHost.builder()
    .composer(new NamedQueryPromptComposer(this::snapshotForAi))
    .rendererFactory(applied -> new NamedQueryReplyRenderer(applyActions, applied))
    .build();