Class EmbedHostBuilder
java.lang.Object
com.inductiveautomation.ignition.designer.ai.embed.EmbedHostBuilder
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();
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Assembles theEmbedHost.composer(PromptComposer composer) Sets the composer that turns each user submission into the message body.rendererFactory(ReplyRendererFactory rendererFactory) Sets the factory that builds the per-session reply renderer.
-
Method Details
-
composer
Sets the composer that turns each user submission into the message body. Required. -
rendererFactory
Sets the factory that builds the per-session reply renderer. Required. -
build
Assembles theEmbedHost.- Throws:
NullPointerException- if no composer or renderer factory was set.
-