Skip to content

Commit 9a8926e

Browse files
Clean up something
Signed-off-by: Siri Varma Vegiraju <[email protected]>
1 parent 2a6b344 commit 9a8926e

File tree

4 files changed

+14
-30
lines changed

4 files changed

+14
-30
lines changed

pom.xml

-18
Original file line numberDiff line numberDiff line change
@@ -119,24 +119,6 @@
119119
<artifactId>kotlin-stdlib</artifactId>
120120
<version>2.1.0</version>
121121
</dependency>
122-
123-
<dependency>
124-
<groupId>io.dapr</groupId>
125-
<artifactId>dapr-sdk</artifactId>
126-
<version>1.13.1</version>
127-
</dependency>
128-
<!-- Dapr's SDK for Actors (optional). -->
129-
<dependency>
130-
<groupId>io.dapr</groupId>
131-
<artifactId>dapr-sdk-actors</artifactId>
132-
<version>1.13.1</version>
133-
</dependency>
134-
<!-- Dapr's SDK integration with SpringBoot (optional). -->
135-
<dependency>
136-
<groupId>io.dapr</groupId>
137-
<artifactId>dapr-sdk-springboot</artifactId>
138-
<version>1.13.1</version>
139-
</dependency>
140122
</dependencies>
141123
</dependencyManagement>
142124

sdk-ai/src/main/java/io/dapr/ai/client/DaprConversationInput.java

+1-10
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,10 @@
55
*/
66
public class DaprConversationInput {
77

8-
/**
9-
* The content to send to the LLM.
10-
*/
118
private final String content;
129

13-
/**
14-
* The role associated with the message (optional).
15-
*/
1610
private DaprConversationRole role;
1711

18-
/**
19-
* Indicates whether PII data should be scrubbed before sending it to the LLM (optional).
20-
*/
2112
private boolean scrubPii;
2213

2314
public DaprConversationInput(String content) {
@@ -36,7 +27,7 @@ public String getContent() {
3627
/**
3728
* Retrieves the role associated with the conversation input.
3829
*
39-
* @return The role of the message, or {@code null} if not set.
30+
* @return this.
4031
*/
4132
public DaprConversationRole getRole() {
4233
return role;

sdk-ai/src/main/java/io/dapr/ai/client/DaprConversationOutput.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public DaprConversationOutput(String result, Map<String, byte[]> parameters) {
2626
/**
2727
* Result for the one conversation input.
2828
*
29-
* @return String.
29+
* @return result output from the LLM.
3030
*/
3131
public String getResult() {
3232
return this.result;
@@ -35,7 +35,7 @@ public String getResult() {
3535
/**
3636
* Parameters for all custom fields.
3737
*
38-
* @return Map.
38+
* @return parameters.
3939
*/
4040
public Map<String, byte[]> getParameters() {
4141
return Collections.unmodifiableMap(this.parameters);

sdk-ai/src/main/java/io/dapr/ai/client/DaprConversationResponse.java

+11
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ public class DaprConversationResponse {
1212

1313
private final List<DaprConversationOutput> daprConversationOutputs;
1414

15+
/**
16+
* Constructor.
17+
*
18+
* @param daprConversationOutputs outputs from the LLM.
19+
*/
1520
public DaprConversationResponse(List<DaprConversationOutput> daprConversationOutputs) {
1621
this.daprConversationOutputs = daprConversationOutputs;
1722
}
1823

24+
/**
25+
* Constructor.
26+
*
27+
* @param contextId context id supplied to LLM.
28+
* @param daprConversationOutputs outputs from the LLM.
29+
*/
1930
public DaprConversationResponse(String contextId, List<DaprConversationOutput> daprConversationOutputs) {
2031
this.contextId = contextId;
2132
this.daprConversationOutputs = daprConversationOutputs;

0 commit comments

Comments
 (0)