nodeSaveToMemory
inline fun <T> AIAgentSubgraphBuilderBase<*, *>.nodeSaveToMemory(name: String? = null, subject: MemorySubject, scope: MemoryScopeType, concepts: List<Concept>, retrievalModel: LLModel? = null): AIAgentNodeDelegate<T, T>(source)
Node that saves a fact to memory
Parameters
subject
The subject scope of the memory (USER, PROJECT, etc.)
scope
The scope of the memory (Agent, Feature, etc.)
concepts
List of concepts to save in memory
retrievalModel
LLM that will be used for fact retrieval from the history (by default, the same model as the current one will be used)
inline fun <T> AIAgentSubgraphBuilderBase<*, *>.nodeSaveToMemory(name: String? = null, concept: Concept, subject: MemorySubject, scope: MemoryScopeType, retrievalModel: LLModel? = null): AIAgentNodeDelegate<T, T>(source)
Node that saves a fact to memory
Parameters
subject
The subject scope of the memory (USER, PROJECT, etc.)
scope
The scope of the memory (Agent, Feature, etc.)
concept
The concept to save in memory
retrievalModel
LLM that will be used for fact retrieval from the history (by default, the same model as the current one will be used)