feat(examples): Add MoonBit client example for PowerMem HTTP API#906
Merged
Teingi merged 1 commit intooceanbase:mainfrom Apr 21, 2026
Merged
feat(examples): Add MoonBit client example for PowerMem HTTP API#906Teingi merged 1 commit intooceanbase:mainfrom
Teingi merged 1 commit intooceanbase:mainfrom
Conversation
|
|
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.
Summary
This PR adds a simple, lightweight MoonBit client example demonstrating how to integrate PowerMem's intelligent memory capabilities into MoonBit applications.
Solution Description
It mirrors the structure of
examples/go/— a self-contained, runnable demo with an inline HTTP client, inline request/response types, and a singlemainthat walks through the core API surface. No dependencies beyondmoonbitlang/coreandmoonbitlang/async(MoonBit's stdlib-tier packages), so the directory is copy-out runnable.Uses the same
POWERMEM_BASE_URL/POWERMEM_API_KEYenvironment variables as the Go example.Tested against a local server (
powermem-server --host 0.0.0.0 --port 8000, SQLite + Ollama.