({ query, alreadyRetrievedContext, conversationText, apiKey, model, onProgress, onModelText, signal })
| 135 | throwIfAborted(signal); |
| 136 | return memoryBank.retrieveAdaptive(query, alreadyRetrievedContext, conversationText, { signal }); |
| 137 | } |
| 138 | |
| 139 | export async function augmentQueryAdaptive({ query, alreadyRetrievedContext, conversationText, apiKey, model, onProgress, onModelText, signal }) { |
| 140 | throwIfAborted(signal); |
| 141 | const memoryBank = await createConfidentialMemoryBank({ |
| 142 | apiKey, |
| 143 | model, |
| 144 | onProgress, |
| 145 | onModelText, |
| 146 | signal |
| 147 | }); |
| 148 | |
| 149 | await memoryBank.init(); |
| 150 | throwIfAborted(signal); |
| 151 | return memoryBank.augmentQueryAdaptive(query, alreadyRetrievedContext, conversationText, { signal }); |
| 152 | } |
| 153 |
nothing calls this directly
no test coverage detected