Package com.tnsai.session.extraction
Class ExtractedKnowledge.Builder
java.lang.Object
com.tnsai.session.extraction.ExtractedKnowledge.Builder
- Enclosing class:
ExtractedKnowledge
Builder for ExtractedKnowledge.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ExtractedKnowledge instance.codeSnippets(List<String> codeSnippets) Sets the code snippets.confidence(double confidence) Sets the confidence score.Sets the main content.extractedAt(Instant extractedAt) Sets the extraction timestamp.Sets the ID.Sets additional metadata.Sets the problem (for SOLUTION and ANTIPATTERN types).relatedFiles(List<String> relatedFiles) Sets the related files.Sets the session ID.Sets the summary.Sets tags from varargs.Sets the tags.type(ExtractionType type) Sets the extraction type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the ID. -
type
Sets the extraction type. -
sessionId
Sets the session ID. -
problem
Sets the problem (for SOLUTION and ANTIPATTERN types). -
content
Sets the main content. -
summary
Sets the summary. -
codeSnippets
Sets the code snippets. -
tags
Sets the tags. -
tags
Sets tags from varargs. -
confidence
Sets the confidence score. -
extractedAt
Sets the extraction timestamp. -
metadata
Sets additional metadata. -
build
Builds the ExtractedKnowledge instance.
-