Skip to content

Commit 3a9d7c0

Browse files
committed
Sync documentation of main branch
1 parent 58db7f5 commit 3a9d7c0

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

_versions/main/guides/assistant.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,17 @@ You can invoke the assistant from backend code using xref:dev-ui.adoc#communicat
174174

175175
==== JsonRPC against the Runtime classpath
176176

177-
To use the assistant in a xref:dev-ui.adoc#jsonrpc-against-the-runtime-classpath[`JsonRpcService`] on the runtime classpath, inject the `Assistant` like this:
177+
To use the assistant in a xref:dev-ui.adoc#jsonrpc-against-the-runtime-classpath[`JsonRpcService`] on the runtime classpath, you need to make sure the `Assistant` interface is available:
178+
179+
[source,xml]
180+
----
181+
<dependency>
182+
<groupId>io.quarkus</groupId>
183+
<artifactId>quarkus-assistant-dev</artifactId>
184+
</dependency>
185+
----
186+
187+
Then you can inject the `Assistant` like this:
178188

179189
[source,java]
180190
----
@@ -201,7 +211,17 @@ You can now use this assistant in any JsonRPC method, example:
201211

202212
==== JsonRPC against the Deployment classpath
203213

204-
In xref:dev-ui.adoc#jsonrpc-against-the-deployment-classpath[deployment-time] code, use the `BuildTimeActionBuildItem` and register assistant actions via `.addAssistantAction(...)`:
214+
In xref:dev-ui.adoc#jsonrpc-against-the-deployment-classpath[deployment-time] code, you need to add the assistant-deployment-spi:
215+
216+
[source,xml]
217+
----
218+
<dependency>
219+
<groupId>io.quarkus</groupId>
220+
<artifactId>quarkus-assistant-deployment-spi</artifactId>
221+
</dependency>
222+
----
223+
224+
Then use the `BuildTimeActionBuildItem` and register assistant actions via `.addAssistantAction(...)`:
205225

206226
[source,java]
207227
----

0 commit comments

Comments
 (0)