diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-29 02:36:40 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-29 02:36:40 +0900 |
| commit | 4c6a831aa2a57e2bcc20aa3fc2f1b7172f5be285 (patch) | |
| tree | 074021381abf57cad434430f25027115b681b8a9 /src/mcp/json.h | |
| parent | 8d38b06f11c713e547d70468340242f23322152c (diff) | |
feat: 会話メモリのプロトタイプを実装
- 6種類のMCPツールと入力検証を追加
- バイナリログ、スナップショット、復旧、圧縮処理を実装
- Unicode n-gram検索とドメインモデルを追加
- 単体テストと統合テストを追加
- アーキテクチャと実装状況を文書化
- Cコードの記述スタイルを統一
Diffstat (limited to 'src/mcp/json.h')
| -rw-r--r-- | src/mcp/json.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mcp/json.h b/src/mcp/json.h new file mode 100644 index 0000000..a46e6c7 --- /dev/null +++ b/src/mcp/json.h @@ -0,0 +1,23 @@ +#ifndef TINY_CONVMEM_MCP_JSON_H +#define TINY_CONVMEM_MCP_JSON_H + +#include <stdbool.h> +#include <stddef.h> + +typedef struct tiny_json_buffer +{ + char *data; + size_t length; + size_t capacity; + bool failed; +} tiny_json_buffer_t; + +void tiny_json_init(tiny_json_buffer_t *buffer); +void tiny_json_free(tiny_json_buffer_t *buffer); +bool tiny_json_raw(tiny_json_buffer_t *buffer, const char *value); +bool tiny_json_raw_n(tiny_json_buffer_t *buffer, const char *value, size_t length); +bool tiny_json_string(tiny_json_buffer_t *buffer, const char *value); +bool tiny_json_u64(tiny_json_buffer_t *buffer, unsigned long long value); +bool tiny_json_i64(tiny_json_buffer_t *buffer, long long value); + +#endif |
