From af83ca0817b6d691956c6566abb43642f51698bf Mon Sep 17 00:00:00 2001 From: bennycode Date: Tue, 16 Sep 2025 20:06:58 +0000 Subject: [PATCH] Update llms-full.txt --- llms/llms-full.txt | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/llms/llms-full.txt b/llms/llms-full.txt index 322c363c..8ca25bb0 100644 --- a/llms/llms-full.txt +++ b/llms/llms-full.txt @@ -1,6 +1,6 @@ # XMTP Full Documentation -Generated at 08:42 PM UTC / September 11, 2025 +Generated at 08:06 PM UTC / September 16, 2025 ## Instructions for AI Tools @@ -928,6 +928,8 @@ const client = await Client.create( // client options { dbEncryptionKey, + // Optional: Use a function to dynamically set the database path based on inbox ID + // dbPath: (inboxId) => `./agent-databases/xmtp-${inboxId}.db3`, }, ); ``` @@ -971,7 +973,7 @@ type ClientOptions = { /** * Path to the local DB * - * There are 3 value types that can be used to specify the database path: + * There are 4 value types that can be used to specify the database path: * * - `undefined` (or excluded from the client options) * The database will be created in the current working directory and is based on @@ -984,8 +986,12 @@ type ClientOptions = { * - `string` * The given path will be used to create the database. * Example: `./my-db.db3` + * + * - `function` + * A callback function that receives the inbox ID and returns a string path. + * Example: `(inboxId) => string` */ - dbPath?: string | null; + dbPath?: string | null | ((inboxId: string) => string); /** * Encryption key for the local DB */ @@ -5725,6 +5731,8 @@ const client = await Client.create( // client options { dbEncryptionKey, + // Optional: Use a function to dynamically set the database path based on inbox ID + // dbPath: (inboxId) => `./databases/xmtp-${inboxId}.db3`, }, ); ``` @@ -5812,7 +5820,7 @@ type ClientOptions = { /** * Path to the local DB * - * There are 3 value types that can be used to specify the database path: + * There are 4 value types that can be used to specify the database path: * * - `undefined` (or excluded from the client options) * The database will be created in the current working directory and is based on @@ -5825,8 +5833,12 @@ type ClientOptions = { * - `string` * The given path will be used to create the database. * Example: `./my-db.db3` + * + * - `function` + * A callback function that receives the inbox ID and returns a string path. + * Example: `(inboxId) => string` */ - dbPath?: string | null; + dbPath?: string | null | ((inboxId: string) => string); /** * Encryption key for the local DB */ @@ -5897,7 +5909,7 @@ type ClientOptions = { /** * Path to the local DB * - * There are 3 value types that can be used to specify the database path: + * There are 4 value types that can be used to specify the database path: * * - `undefined` (or excluded from the client options) * The database will be created in the current working directory and is based on @@ -5910,8 +5922,12 @@ type ClientOptions = { * - `string` * The given path will be used to create the database. * Example: `./my-db.db3` + * + * - `function` + * A callback function that receives the inbox ID and returns a string path. + * Example: `(inboxId) => string` */ - dbPath?: string | null; + dbPath?: string | null | ((inboxId: string) => string); /** * Encryption key for the local DB */