feat(sdk-cpp): complete C++ SDK feature parity with all memory API endpoints#33
Merged
Al629176 merged 8 commits intotinyhumansai:mainfrom Mar 25, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…HttpServer helpers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add chat_memory, chat_memory_context, interact_memory, record_interactions methods with ChatMemoryParams and InteractMemoryParams types. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add recall_thoughts and query_memory_context methods with RecallThoughtsParams and QueryMemoryContextParams types. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add insert_document, insert_documents_batch, list_documents, get_document, delete_document, get_graph_snapshot, get_ingestion_job, and wait_for_ingestion_job methods with all associated param types. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…API parity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Server expects entityNames (not entities) for interact/record endpoints, and items (not documents) for batch document insert. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Brings the C++ SDK to full feature parity with the Python/TypeScript SDKs, adding 14 new endpoints, HTTP GET/DELETE support,
X-Model-Idheader, and migrating all paths from/v1/memory/...to/memory/....Changes
Infrastructure
/v1/memory/...to/memory/...model_idfield withX-Model-Idheader on all requests (default:neocortex-mk1)(token, model_id, base_url)(backward-compatible)send_get()andsend_delete()internal methods with query string URL encoding viacurl_easy_escape()model_id_New Endpoints (14)
chat_memory,chat_memory_contextinteract_memory,record_interactionsrecall_thoughts,query_memory_contextinsert_document,insert_documents_batch,list_documents,get_document,delete_documentget_graph_snapshot,get_ingestion_job,wait_for_ingestion_jobTypes
ChatMemoryParams,InteractMemoryParams,RecallThoughtsParams,QueryMemoryContextParams,InsertDocumentParams,InsertDocumentsBatchParams,ListDocumentsParams,GetDocumentParams,GraphSnapshotParams,WaitForIngestionJobOptionsto_query_params()returningmap<string,string>instead ofto_json()Tests
last_method()andlast_path()helpers to MockHttpServerTesting
make test)Notes
New endpoints return
nlohmann::json(not typed response structs), matching the Go/Java SDK pattern for newer endpoints. Existing 5 methods retain their typed responses for backward compatibility.