MCPcopy
hub / github.com/MuiseDestiny/zotero-gpt / get

Method get

src/modules/localStorage.ts:31–34  ·  view source on GitHub ↗
(item: Zotero.Item | { key: string }, key: string)

Source from the content-addressed store, hash-verified

29 }
30
31 get(item: Zotero.Item | { key: string }, key: string) {
32 if (this.cache == undefined) { return }
33 return (this.cache[item.key] ??= {})[key]
34 }
35
36 async set(item: Zotero.Item | { key: string }, key: string, value: any) {
37 await this.lock.promise;

Callers 11

buildContainerMethod · 0.80
inputListenerMethod · 0.80
getTagsMethod · 0.80
callbackMethod · 0.80
getRelatedTextFunction · 0.80
getPDFAnnotationsFunction · 0.80
similaritySearchFunction · 0.80
requestMethod · 0.80
getGPTResponseFunction · 0.80
getGPTResponseByOpenAIFunction · 0.80
getGPTResponseByFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected