Skip to content

Commit 19307fd

Browse files
committed
fix(soul): keep the wiki folder's narrowed type inside the guarded attach
Signed-off-by: jddunn <[email protected]>
1 parent 9582039 commit 19307fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/api/souledAgent.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,10 @@ export async function souledAgent(opts: SouledAgentOptions): Promise<SouledAgent
924924

925925
const chunker = new SemanticChunker();
926926
const priorTools = rest.tools;
927+
const memoryDir = loaded.memoryDir;
927928
const { tools: augmentedTools } = await closingOnThrow(() => attachMemoryWiki({
928929
memory,
929-
memoryDir: loaded.memoryDir,
930+
memoryDir,
930931
agentId,
931932
llm,
932933
chunk: (t) => chunker.chunk(t).map((c) => ({ text: c.text })),

0 commit comments

Comments
 (0)