From a44fd4cf3a0c3d7ae33b7664341a0a9bff07aaaa Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Wed, 1 Jul 2026 00:11:08 +0900 Subject: 大規模履歴向けread_messages pagination対応 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/architecture.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/architecture.md') diff --git a/docs/architecture.md b/docs/architecture.md index 9bd7c62..64d4b06 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -49,7 +49,7 @@ where it conflicts with this section, the implemented contract is authoritative. - `--data-dir ` is mandatory and guarded by a process-exclusive lock. The prototype remains Windows x64/MSVC and single-process. Retention, -encryption, pagination, multiple writers, automated summarization, and secure +encryption, search pagination, multiple writers, automated summarization, and secure physical erasure are outside v1. # ProtoType Architecture v0.0.1 @@ -58,7 +58,7 @@ Tiny-ConvMem-MCP: FINAL TOOL INTERFACE SPECIFICATION (v1.0) この定義は、システムと外部(LLMプロセス)との間の「契約書」となります。これで実装に着手できますね! No. Tool Name カテゴリ 機能概要 入力引数 (Arguments) 出力値 (Response) 1 write_message SET/WRITE 新しいメッセージイベントをログファイルへ追記し、インデックスを更新する。 session_id, role, content, timestamp status: Enum(OK, ERROR) -2 read_messages GET/READ 特定セッションIDの全メッセージを時系列順に読み出す。(フル履歴取得) session_id: 文字列 history: 配列(メッセージオブジェクト) +2 read_messages GET/READ 特定セッションIDのメッセージを安定順序でページ取得する。 session_id、limit、cursor history、nextCursor 3 search_messages GET/READ クエリに基づいてログファイルから関連するメッセージを特定し、返す。(インデックス利用が前提) query, session_id (任意), limit: 整数 results: 配列(メッセージオブジェクト) 4 delete_message SET/MANAGE 特定のメッセージIDを指定してログから完全に削除し、インデックスをクリーンアップする。 message_id: 唯一ID, session_id (任意) status: Enum(OK, NOT_FOUND) 5 rebuild_index SET/MANAGE インデックスファイルを再生成し、データ整合性を回復させる。(メンテナンス) なし status: Enum(OK, ERROR) -- cgit v1.2.3