Skip to content

feat: Add generative AI conversation examples#39

Open
Issacmadassery1 wants to merge 56 commits into
splashkit:masterfrom
Issacmadassery1:generative-ai-conversation
Open

feat: Add generative AI conversation examples#39
Issacmadassery1 wants to merge 56 commits into
splashkit:masterfrom
Issacmadassery1:generative-ai-conversation

Conversation

@Issacmadassery1
Copy link
Copy Markdown

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 SplashKit
    • public/usage-examples/generative_ai/generate-convo-1-example-top-level.cs - Modern C# with top-level statements
    • public/usage-examples/generative_ai/generate-convo-1-example-oop.cs - Traditional C# OOP pattern
    • public/usage-examples/generative_ai/generate-convo-1-example.py - Beginner-friendly Python version
    • public/usage-examples/generative_ai/generate-convo-1-example.txt - Documentation explaining the examples

Key Features

  • ✅ Cross-platform C++ using SplashKit library
    • ✅ Multiple C# patterns for learning (top-level vs OOP)
    • ✅ Readable Python implementation
    • ✅ Comprehensive documentation file
    • ✅ Beginner-friendly code with detailed comments
    • ✅ Terminal-based interactive conversation loop

Testing

  • All examples compile without errors
    • Basic functionality verified: user input → AI generation → display output
    • Quit handling tested with "quit" command
    • Empty input properly skipped

Related

These examples demonstrate the generate_text() AI function for creating interactive terminal conversations, providing a foundation for learning generative AI integration with SplashKit.

sharvani28 and others added 30 commits February 10, 2025 20:51
* 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
2. added code for cs and python translations for first section of tutorial
ctrlvish and others added 26 commits September 7, 2025 13:30
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.
Added usage example for Close Window Function
…raphics

Add draw circle graphics usage examples
Update/Continue Shape Modelling Tutorial
Update/Continue Dynamic Camera Control Tutorial
- 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
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.

9 participants