Skip to content

TechCognita-Community/JavaChatX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ’¬ JavaChatX

Build GitHub issues GitHub stars GitHub license Security Documentation

Open-source AI Agent Development Framework built in Java.
Build custom agents, integrate with APIs (OpenAI, Gemini, Hugging Face), manage context, and automate workflows.

Core Features

  • Modular agent framework
  • Chat engine
  • API and plugin system
  • Context memory management
  • CLI/REST/Web Dashboard (upcoming)

Quick Start

AgentConfig config = AgentConfig.builder()
  .name("SupportAgent")
  .model("gpt-4")
  .build();

OpenAIAdapter openai = new OpenAIAdapter("your-api-key");
Agent agent = new Agent(config, openai);
String response = agent.chat("Hello! Can you help me?");
System.out.println(response);

πŸš€ Project Overview

JavaChatX is a modular framework that allows developers to build, train, and deploy intelligent conversational agents that can communicate, reason, and automate tasks through a unified chat interface.

🧠 Tech Stack

  • Language: Java 17+
  • Build Tool: Maven
  • Dependencies: Gson (JSON processing), SLF4J/Logback (Logging), JUnit 5 (Testing)

🎯 Core Features

  • Modular AI Agent Architecture: Create custom agents with specific capabilities
  • Built-in Chat Engine: Handle message processing and session management
  • API-Ready Design: Integrate with OpenAI, Gemini, Hugging Face, and other AI services
  • Context Memory Management: Maintain conversation state and history
  • Extensible Plugin System: Add new capabilities through plugins
  • CLI + Web Dashboard: Command-line interface and web-based management (upcoming)

πŸ“ Project Structure

JavaChatX/
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚   β”‚   β”œβ”€β”€ bug_report.md
β”‚   β”‚   └── feature_request.md
β”‚   β”œβ”€β”€ PULL_REQUEST_TEMPLATE.md
β”‚   └── workflows/
β”‚       β”œβ”€β”€ java-ci.yml
β”‚       β”œβ”€β”€ security-scan.yml
β”‚       β”œβ”€β”€ docs-deployment.yml
β”‚       β”œβ”€β”€ code-format.yml
β”‚       β”œβ”€β”€ performance-test.yml
β”‚       β”œβ”€β”€ dependency-update.yml
β”‚       └── release.yml
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main/
β”‚   β”‚   β”œβ”€β”€ java/
β”‚   β”‚   β”‚   └── com/
β”‚   β”‚   β”‚       └── techcognita/
β”‚   β”‚   β”‚           └── javachatx/
β”‚   β”‚   β”‚               β”œβ”€β”€ agent/         # AI agent implementations
β”‚   β”‚   β”‚               β”œβ”€β”€ api/           # API connectors for external services
β”‚   β”‚   β”‚               β”œβ”€β”€ chat/          # Chat engine components
β”‚   β”‚   β”‚               β”œβ”€β”€ context/       # Context and memory management
β”‚   β”‚   β”‚               β”œβ”€β”€ plugin/        # Plugin system
β”‚   β”‚   β”‚               └── JavaChatX.java # Main framework coordinator
β”‚   β”‚   └── resources/
β”‚   β”‚       └── config.yaml
β”‚   └── test/
β”‚       └── java/...
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ README.md
β”‚   β”œβ”€β”€ ARCHITECTURE.md
β”‚   β”œβ”€β”€ AGENT_GUIDE.md
β”‚   β”œβ”€β”€ PLUGIN_DEVELOPMENT.md
β”‚   └── API_INTEGRATION.md
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ basic-agent/
β”‚   β”œβ”€β”€ context-agent/
β”‚   β”œβ”€β”€ multi-agent/
β”‚   β”œβ”€β”€ custom-plugin/
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CODE_OF_CONDUCT.md
└── pom.xml (or build.gradle)

πŸš€ Getting Started

Step 1: Verify Prerequisites

Ensure you have the following installed:

  • Java 17+: Check your version with java -version
  • Maven 3.6+: Verify with mvn -version

Quick Install (if needed):

Step 2: Clone the Repository

git clone https://github.com/TechCognita-Community/JavaChatX.git
cd JavaChatX

Step 3: Build the Project

Build and install dependencies:

mvn clean install

This will:

  • Download dependencies
  • Compile the source code
  • Run unit tests
  • Install the project to your local Maven repository

Expected output: You should see BUILD SUCCESS at the end.

Step 4: Run Example Applications

Try out the examples to see JavaChatX in action:

# Run the basic agent example
mvn exec:java -Dexec.mainClass="com.techcognita.javachatx.examples.basic.BasicAgentExample"

# Run the context agent example
mvn exec:java -Dexec.mainClass="com.techcognita.javachatx.examples.context.ContextAgentExample"

Step 5: Integrate into Your Project

Add JavaChatX as a dependency to your pom.xml:

<dependency>
    <groupId>com.techcognita</groupId>
    <artifactId>javachatx</artifactId>
    <version>1.0.0</version>
</dependency>

Running Code Quality Checks

JavaChatX uses several code quality tools:

  • Checkstyle: Ensures code follows standard Java conventions
  • JaCoCo: Measures test coverage

To run all quality checks:

mvn verify

To run specific checks:

# Run Checkstyle
mvn checkstyle:check

# Generate test coverage report
mvn jacoco:report
# View report at target/site/jacoco/index.html

Troubleshooting

Build fails with "Compilation error"

  • Ensure Java 17+ is being used: mvn -version shows Java version
  • Try: mvn clean install -U (forces dependency updates)

Example doesn't run

  • Check that the example class exists in the examples/ directory
  • Verify the class name matches: mvn exec:java -Dexec.mainClass="..."

Need more help?

πŸ”„ Continuous Integration & Deployment

JavaChatX uses GitHub Actions for continuous integration and deployment:

  • Java CI: Builds and tests the project on multiple Java versions
  • Security Scan: Runs CodeQL analysis and dependency review
  • Documentation Deployment: Automatically generates and deploys Javadoc to GitHub Pages
  • Code Formatting: Ensures consistent code style with Google Java Format
  • Performance Testing: Runs performance benchmarks
  • Dependency Updates: Checks for outdated dependencies weekly
  • Release: Automatically creates GitHub releases and packages JAR files

🀝 Contributing

  • Fork repo, create feature branch, submit PR.
  • Add new agents, plugins, or API adapters.
  • Improve docs, examples, or tests.

🌍 Vision

To create a robust, community-driven Java framework that simplifies the development of conversational AI agents β€” empowering students and developers to explore AI automation and intelligent chat systems with ease.

πŸ“„ License

MIT License (c) 2025 TechCognita Community

πŸ“ž Contact & Community

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages