Package com.tnsai.context.assembler
Class UnifiedContextAssembler.Builder
java.lang.Object
com.tnsai.context.assembler.UnifiedContextAssembler.Builder
- Enclosing class:
UnifiedContextAssembler
Builder for UnifiedContextAssembler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()contextManager(ContextManagerHandle contextManager) Sets the context manager for decision precedent lookup.Sets the current decision trace for precedent matching.memoryQuery(String query) Sets the query for memory semantic search.memorySearchLimit(int limit) Sets the max results for memory search.memoryStore(MemoryStore memoryStore) Sets the memory store for conversation history and semantic search.Sets the model name for model-aware token estimation.precedentLimit(int limit) Sets the maximum number of precedents to include.precedentThreshold(double threshold) Sets the similarity threshold for precedent matching.ragContext(List<String> ragContext) Sets RAG (retrieval-augmented generation) context chunks.systemPrompt(String systemPrompt) Sets the base system prompt (from AgentPromptBuilder).tokenBudget(TokenBudget budget) Sets the token budget.tools(List<ToolMethod> tools) Sets the available tools for tool definition injection.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
systemPrompt
Sets the base system prompt (from AgentPromptBuilder). -
memoryStore
Sets the memory store for conversation history and semantic search. -
memoryQuery
Sets the query for memory semantic search. -
memorySearchLimit
Sets the max results for memory search. Default: 5 -
ragContext
Sets RAG (retrieval-augmented generation) context chunks. -
contextManager
Sets the context manager for decision precedent lookup. -
currentDecisionTrace
Sets the current decision trace for precedent matching. -
precedentThreshold
Sets the similarity threshold for precedent matching. Default: 0.6 -
precedentLimit
Sets the maximum number of precedents to include. Default: 3 -
tools
Sets the available tools for tool definition injection. -
tokenBudget
Sets the token budget. Required. -
modelName
Sets the model name for model-aware token estimation. -
build
-