Add generative AI examples and register SplashKit author#759
Add generative AI examples and register SplashKit author#759222448082Ashen wants to merge 1 commit into
Conversation
Add multiple generative AI usage examples and supporting assets under public/usage-examples/generative_ai: C# (OOP and top-level), C++, Python, a PNG screenshot, and a text snippet demonstrating a single-turn "Interactive AI Terminal" using GenerateReply. Also update astro.config.mjs to register a new site author 'sk' (SplashKit) with name, title, URL, and image_url for site metadata.
❌ Deploy Preview for splashkit failed.
|
RUNQILIU-123
left a comment
There was a problem hiding this comment.
Looks good to me. The PR adds a clear and focused generate_reply usage example across C++, C#, and Python, and the example demonstrates the function in a simple single-turn interactive AI terminal format.
The code is easy to follow, uses SplashKit functions appropriately, and includes the supporting title text and screenshot asset. The author metadata update in astro.config.mjs also looks reasonable for registering the SplashKit author.
No blocking issues from my review. Approved.
jankiluitel
left a comment
There was a problem hiding this comment.
Reviewed the PR and the implementation looks solid overall. The generative AI examples are consistent across C#, C++, and Python, and the UI demonstration is easy to follow. The SplashKit author registration in astro.config.mjs is also correctly added and improves configuration consistency.
One minor optional suggestion: the C++ example uses string without explicitly including <string> or using std::string, which may cause issues in some compiler environments.
Apart from that, everything looks good — approved for merge.
Description
Splashkit Function: generate_reply
Overview of example functionality:
This PR adds an integrated usage example called Interactive AI Terminal (Single-Turn AI). The example opens a window, reads a user prompt using read_line, generates a single AI-style response using generate_reply, and displays the response in terminal and on-screen text.
For environments where the Python binding does not expose generate_reply, the Python variant now falls back to a local reply so the example still runs.
Example Output:
Added screenshot asset at generate_reply-1-example.png
Files Included
Usage Example Checks (READ CAREFULLY)