Skip to content

feat(examples): Add MoonBit client example for PowerMem HTTP API#906

Merged
Teingi merged 1 commit intooceanbase:mainfrom
tonyfettes:add-moonbit-example
Apr 21, 2026
Merged

feat(examples): Add MoonBit client example for PowerMem HTTP API#906
Teingi merged 1 commit intooceanbase:mainfrom
tonyfettes:add-moonbit-example

Conversation

@tonyfettes
Copy link
Copy Markdown
Contributor

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 single main that walks through the core API surface. No dependencies beyond moonbitlang/core and moonbitlang/async (MoonBit's stdlib-tier packages), so the directory is copy-out runnable.

Uses the same POWERMEM_BASE_URL / POWERMEM_API_KEY environment variables as the Go example.

Tested against a local server (powermem-server --host 0.0.0.0 --port 8000, SQLite + Ollama.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown
Member

@Teingi Teingi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Teingi Teingi merged commit b74f7bb into oceanbase:main Apr 21, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants