feat: Add generative AI conversation examples#39
Open
Issacmadassery1 wants to merge 56 commits into
Open
Conversation
* camera control tutorial * Updated code * delete camera control * camera tutorial * Updated dynamic camera tutorial * Unnecessary files * Updated the code - smaller sections 1 * Updated the code- smaller sections 2 * Updated resources/corrections * small correction
* review Introduction to JSON in SplashKit * graphics application * graphics application * Update 3-.mdx * Update 3-.mdx * Update 3-.mdx * Update 0-json_intro.mdx * Update and rename 3-.mdx to 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx * Update 3-Graphical Application - Graphical-operation-management.mdx
…arlight into new/tutorial/graphics-shape-modelling
…arlight into new/tutorial/camera-movement
…arlight into new/tutorial/camera-movement
2. added code for cs and python translations for first section of tutorial
This reverts commit 470816e.
Introduces example files for drawing circles using SplashKit in C#, C++ and Python, including both OOP and top-level styles. Also adds a sample output image and a descriptive text file for demonstration purposes.
Rectangle Around Usage Example
Added usage example for Close Window Function
Bitmap Center Usage Example
Fix typo in api-pages-script.cjs
Beginner Game Tutorial - Flappy Bird
…raphics Add draw circle graphics usage examples
Update/Continue Shape Modelling Tutorial
Get Font Style Usage Example
Update/Continue Dynamic Camera Control Tutorial
Saturation Of Usage Example
- Implement generate_text() examples in multiple languages - Support C++ (STL strings and SplashKit functions) - Support C# (both top-level and OOP patterns) - Support Python (with clean and readable syntax) - Include comprehensive documentation file - Provide beginner-friendly code with detailed comments - Examples demonstrate user input, AI response generation, and conversation loop
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.
Description
This PR adds terminal-based AI conversation examples to demonstrate the
generate_text()function across multiple programming languages.Files Added
public/usage-examples/generative_ai/generate-convo-1-example.cpp- C++ implementation using SplashKitpublic/usage-examples/generative_ai/generate-convo-1-example-top-level.cs- Modern C# with top-level statementspublic/usage-examples/generative_ai/generate-convo-1-example-oop.cs- Traditional C# OOP patternpublic/usage-examples/generative_ai/generate-convo-1-example.py- Beginner-friendly Python versionpublic/usage-examples/generative_ai/generate-convo-1-example.txt- Documentation explaining the examplesKey Features
Testing
Related
These examples demonstrate the
generate_text()AI function for creating interactive terminal conversations, providing a foundation for learning generative AI integration with SplashKit.