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 --- src/mcp/tools/common/history.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/mcp/tools/common/history.h (limited to 'src/mcp/tools/common/history.h') diff --git a/src/mcp/tools/common/history.h b/src/mcp/tools/common/history.h new file mode 100644 index 0000000..ac08d99 --- /dev/null +++ b/src/mcp/tools/common/history.h @@ -0,0 +1,17 @@ +#ifndef TINY_CONVMEM_MCP_TOOLS_HISTORY_H +#define TINY_CONVMEM_MCP_TOOLS_HISTORY_H + +#include "storage/store.h" + +typedef struct tiny_history_index tiny_history_index_t; + +tiny_history_index_t *tiny_history_index_build(const tiny_store_t *store); +void tiny_history_index_free(tiny_history_index_t *index); +bool +tiny_history_index_add(tiny_history_index_t *index, const tiny_store_t *store, size_t entry_index); +bool tiny_history_index_session(const tiny_history_index_t *index, + const char *session_id, + const size_t **entries, + size_t *count); + +#endif -- cgit v1.2.3