MCPcopy Create free account
hub / github.com/MemTensor/MemOS / toJSON

Method toJSON

apps/memos-local-plugin/agent-contract/errors.ts:77–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 toJSON(): SerializedMemosError {
78 return { name: "MemosError", code: this.code, message: this.message, details: this.details };
79 }
80
81 static is(err: unknown): err is MemosError {
82 return err instanceof MemosError || (

Callers 4

handleLineFunction · 0.80
summarizeErrFunction · 0.80
toErrDetailFunction · 0.80
contract.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected