|
| 1 | +import { AdminForthDataTypes } from 'adminforth'; |
| 2 | +import type { AdminForthResourceInput } from 'adminforth'; |
| 3 | + |
| 4 | +// Persistent LangGraph checkpointer store for the AdminForth Agent plugin. |
| 5 | +// Enables reliable multi-turn memory and message editing / branching. |
| 6 | +export default { |
| 7 | + dataSource: 'sqlite', |
| 8 | + table: 'agent_checkpoints', |
| 9 | + resourceId: 'agent_checkpoints', |
| 10 | + label: 'Agent Checkpoints', |
| 11 | + columns: [ |
| 12 | + { name: 'id', primaryKey: true, type: AdminForthDataTypes.STRING }, |
| 13 | + { name: 'thread_id', type: AdminForthDataTypes.STRING }, |
| 14 | + { name: 'checkpoint_namespace', type: AdminForthDataTypes.STRING }, |
| 15 | + { name: 'checkpoint_id', type: AdminForthDataTypes.STRING }, |
| 16 | + { name: 'parent_checkpoint_id', type: AdminForthDataTypes.STRING }, |
| 17 | + { name: 'row_kind', type: AdminForthDataTypes.STRING }, |
| 18 | + { name: 'task_id', type: AdminForthDataTypes.STRING }, |
| 19 | + { name: 'sequence', type: AdminForthDataTypes.INTEGER }, |
| 20 | + { name: 'created_at', type: AdminForthDataTypes.DATETIME }, |
| 21 | + { name: 'checkpoint_payload', type: AdminForthDataTypes.TEXT }, |
| 22 | + { name: 'metadata_payload', type: AdminForthDataTypes.TEXT }, |
| 23 | + { name: 'writes_payload', type: AdminForthDataTypes.TEXT }, |
| 24 | + { name: 'schema_version', type: AdminForthDataTypes.INTEGER }, |
| 25 | + ], |
| 26 | +} as AdminForthResourceInput; |
0 commit comments