MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / saveApiConversationHistory

Method saveApiConversationHistory

src/core/task/Task.ts:999–1011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

997 }
998
999 private async saveApiConversationHistory(): Promise<boolean> {
1000 try {
1001 await saveApiMessages({
1002 messages: structuredClone(this.apiConversationHistory),
1003 taskId: this.taskId,
1004 globalStoragePath: this.globalStoragePath,
1005 })
1006 return true
1007 } catch (error) {
1008 console.error("Failed to save API conversation history:", error)
1009 return false
1010 }
1011 }
1012
1013 /**
1014 * Public wrapper to retry saving the API conversation history.

Calls 2

saveApiMessagesFunction · 0.90
errorMethod · 0.65

Tested by

no test coverage detected