import type * as agentcore from "@distilled.cloud/aws/bedrock-agentcore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Memory } from "./Memory.ts"; export interface BatchCreateMemoryRecordsRequest extends Omit { } /** * Directly inserts long-term memory records, bypassing asynchronous extraction. * * Bind a {@link Memory} inside a function runtime to call the * AgentCore data-plane API against it. Provide `AgentCore.BatchCreateMemoryRecordsHttp` * on the Function effect to implement the binding. * * ### Writing Memory Records * **Example:** Insert a Record Directly * ```typescript * // init * const batchCreateMemoryRecords = yield* AgentCore.BatchCreateMemoryRecords(memory); * * return { * fetch: Effect.gen(function* () { * // runtime * const result = yield* batchCreateMemoryRecords({ * records: [ * { * requestIdentifier: "rec-1", * namespaces: ["facts/user-1"], * content: { text: "The user's favorite color is teal." }, * timestamp: new Date(), * }, * ], * }); * return HttpServerResponse.json({ * created: result.successfulRecords.length, * }); * }), * }; * ``` * * @binding */ export interface BatchCreateMemoryRecords extends Binding.Service(memory: R) => Effect.Effect<(request: BatchCreateMemoryRecordsRequest) => Effect.Effect>> { } export declare const BatchCreateMemoryRecords: BatchCreateMemoryRecords; //# sourceMappingURL=BatchCreateMemoryRecords.d.ts.map