From 4c6a831aa2a57e2bcc20aa3fc2f1b7172f5be285 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Mon, 29 Jun 2026 02:36:40 +0900 Subject: feat: 会話メモリのプロトタイプを実装 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 6種類のMCPツールと入力検証を追加 - バイナリログ、スナップショット、復旧、圧縮処理を実装 - Unicode n-gram検索とドメインモデルを追加 - 単体テストと統合テストを追加 - アーキテクチャと実装状況を文書化 - Cコードの記述スタイルを統一 --- src/domain/search.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/domain/search.h (limited to 'src/domain/search.h') diff --git a/src/domain/search.h b/src/domain/search.h new file mode 100644 index 0000000..3408998 --- /dev/null +++ b/src/domain/search.h @@ -0,0 +1,22 @@ +#ifndef TINY_CONVMEM_DOMAIN_SEARCH_H +#define TINY_CONVMEM_DOMAIN_SEARCH_H + +#include +#include + +#include "domain/message.h" + +typedef struct tiny_search_index tiny_search_index_t; + +tiny_search_index_t *tiny_search_index_create(void); +void tiny_search_index_free(tiny_search_index_t *index); +bool tiny_search_index_add(tiny_search_index_t *index, + const tiny_message_t *message, + size_t message_index); +bool tiny_search_index_candidates(const tiny_search_index_t *index, + const char *query, + size_t **message_indices, + size_t *count); +double tiny_search_score(const char *query, const tiny_message_t *message); + +#endif -- cgit v1.2.3