forked from HamaWhiteGG/langchain-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lingjue@ubuntu
committed
Sep 11, 2023
1 parent
d08c153
commit 15125e4
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
langchain-core/src/main/java/com/hw/langchain/schema/AsyncLLMResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.hw.langchain.schema; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author lingjue@ubuntu | ||
* @since 8/1/23 7:01 PM | ||
*/ | ||
@Data | ||
public class AsyncLLMResult { | ||
|
||
/** | ||
* List of the things generated. This is List<List<Generation>> because each input could have multiple generations. | ||
*/ | ||
private List<? extends Generation> generations; | ||
|
||
/** | ||
* For arbitrary LLM provider specific output. | ||
*/ | ||
private Map<String, Object> llmOutput; | ||
|
||
public AsyncLLMResult(List<? extends Generation> generations, Map<String, Object> llmOutput) { | ||
this.generations = generations; | ||
this.llmOutput = llmOutput; | ||
} | ||
|
||
} |