File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ func DynamicPrompts(dynamicConfig map[string]string) func(*state.AgentConfig) fu
3636
3737 memoryFilePath := memoryPath (a .Name , dynamicConfig )
3838 promptblocks := []agent.DynamicPrompt {}
39- _ , memory , err := actions .NewMemoryActions (memoryFilePath , dynamicConfig )
40- if err != nil {
41- xlog .Error ("Error creating memory actions" , "error" , err )
42- return promptblocks
43- }
4439
4540 for _ , c := range a .DynamicPrompts {
4641 var config map [string ]string
@@ -57,6 +52,8 @@ func DynamicPrompts(dynamicConfig map[string]string) func(*state.AgentConfig) fu
5752 }
5853 promptblocks = append (promptblocks , prompt )
5954 case DynamicPromptMemory :
55+ _ , memory , _ := actions .NewMemoryActions (memoryFilePath , dynamicConfig )
56+
6057 promptblocks = append (promptblocks ,
6158 prompts .NewMemoryPrompt (config , memory ),
6259 )
You can’t perform that action at this time.
0 commit comments