File tree Expand file tree Collapse file tree
packages/tools/src/voltagent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 * @module
88 */
99
10- import { validateApiKey } from "../shared"
1110import { createSupermemoryHooks , mergeHooks } from "./hooks"
1211import type { VoltAgentConfig , SupermemoryVoltAgent } from "./types"
1312
@@ -139,10 +138,7 @@ export function withSupermemory<T extends VoltAgentConfig>(
139138) : T {
140139 const { containerTag, ...supermemoryOptions } = options
141140
142- // Validate API key
143- validateApiKey ( supermemoryOptions . apiKey )
144-
145- // Create Supermemory hooks (internally creates its own context)
141+ // Create Supermemory hooks (internally creates its own context, validates API key)
146142 const supermemoryHooks = createSupermemoryHooks (
147143 containerTag ,
148144 supermemoryOptions ,
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export interface SupermemoryVoltAgent
6060 */
6161 include ?: IncludeOptions
6262
63-
6463 /**
6564 * Optional metadata to attach to saved documents/conversations.
6665 * Can include strings, numbers, or booleans.
You can’t perform that action at this time.
0 commit comments