diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-07-01 00:11:08 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-07-01 00:11:08 +0900 |
| commit | a44fd4cf3a0c3d7ae33b7664341a0a9bff07aaaa (patch) | |
| tree | 5c3152e7df8b16b207d6ebd69dfaf205765a8044 /src/mcp/tools/common/history.h | |
| parent | e3db01cd487c5b666366885367c8bfff4a6a09da (diff) | |
大規模履歴向けread_messages pagination対応
Diffstat (limited to 'src/mcp/tools/common/history.h')
| -rw-r--r-- | src/mcp/tools/common/history.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
