Skip to content

shohinx/JinuAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Image Generation Application

Overview

This project is an AI-powered image generation application that enables users to create high-quality images using Google’s advanced AI model codenamed Nano Banana.

Supported Modes

  • Default Mode – Automatically refine prompts when no category is selected.
  • Fitting Mode – Modify existing images to fit new styles or concepts.
  • Template Mode (Styles & Lightbox) – Apply predefined templates, including Lightbox product presets.

Requirements & References

⚠️ Important: This project requires the GOOGLE_AI_SDK to function properly.

🛠️ Agents are built using Google A2A (Agent-to-Agent) tools, following the official Google Agent Team Tutorial.

📚 For API reference, see Google Gemini Image Generation Documentation.

💡 Tip: When making decisions on session management, check what the provider gives out-of-the-box (e.g., OpenAI Agents SDK or Google A2A).

Agent Built-in Session Service (Database Schema)

Table Key Fields
sessions id, app_name, user_id, state, create_time, update_time
events id, app_name, user_id, session_id, invocation_id, author, actions, branch, timestamp, content, grounding_metadata, custom_metadata, partial, turn_complete, error_code, error_message, interrupted
app_states app_name, state, update_time
user_states app_name, user_id, state, update_time

Core File Structure

📂 app
├── 📂 routes
│   ├── 📄 agent.py
│   └── 📄 style.json
├── 📂 utils
│   ├── 📄 agent_guardrail.py
│   ├── 📄 agent_helpers.py
│   ├── 📄 agent_orchestration.py
│   └── 📄 agent_tool.py
│   └── 📄 config.py

Model Selection

FLASH_TEXT: ClassVar[str] = "gemini-2.5-flash"

FLASH_IMAGE: ClassVar[str] = "gemini-2.5-flash-image-preview"

Change the model to your liking.

Project Philosophy

This repository is designed not just for research and implementation of machine learning tools, but also to support a continuous cycle of applied AI collaboration: Awareness – Understanding goals, platforms, and how to delegate effectively between humans and AI. Description – Defining expectations, task approaches, and AI collaboration behavior. Discernment – Evaluating the quality of outputs, the soundness of processes, and AI performance. Diligence – Ensuring responsible use of AI, maintaining transparency, and taking accountability for deployed outputs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published