Create a new PostgresChatMessageHistory instance.
initialize(
engine: PostgresEngine,
sessionId: string,
tableName: string,
schemaName: string = "public"
): Promise<PostgresChatMessageHistory>| Name | Type | Description |
|---|---|---|
engine* | PostgresEngine | Postgres engine instance to use. |
sessionId* | string | Retrieve the table content with this session ID. |
tableName* | string | Table name that stores that chat message history. Parameter is not escaped. Do not use with end user input. |
schemaName | string | Default: "public"Schema name for the chat message history table. Default: "public". Parameter is not escaped. Do not use with end user input. |