Skip to main content

GQC Agent provides a multi-agent AI pipeline for intent classification, query rephrasing, and note creation using GPT and Gemini models.

Project description

GQC Agent

GQC Agent is a Python library that helps developers work with AI models using an agent-based pipeline. It includes model validation, intent classification, query rephrasing, summarization, and an orchestrator that manages all agents.

Table of Contents

Overview

GQC Agent is a lightweight, modular Python library designed to orchestrate multiple AI agents for large language model (LLM) applications. It simplifies the workflow of building intelligent conversational systems by providing robust tools for input validation, model management, intent prediction, query rephrasing, and interaction summarization.

Features

  • GPT & Gemini model validator
  • Intent classifier
  • Query rephraser
  • Summarizer agent
  • Orchestrator for multi-agent flow

Technologies

Project is created with:

  • Python 3.13

Use Cases

  • AI chatbots with enhanced context handling
  • Retrieval-Augmented Generation (RAG) for Q&A and summarization
  • Workflow automation using multiple AI agents
  • Note-taking and interaction summarization

Installation

Install using pip (after publishing)

pip install gqc-agent

Environment Setup

Create a .env file: OPENAI_API_KEY=your_key
GEMINI_API_KEY=your_key

Usage Examples

Example: Using OPENAI Client

from gqc_agent.core.orchestrator import AgentPipeline

OPENAI_API_KEY = "YOUR_OPENAI_API_KEY"

client = AgentPipeline(api_key=OPENAI_API_KEY, model="gpt-4o-mini")
response = client.run_gqc(
    user_input={
        "input": "Tell me more about both of them",
        "current": {"role": "user", "query": "Tell me more about both of them", "timestamp": "2025-01-01 12:30:45"},
        "history": [
            {"role": "user", "query": "What is meant by active broker", "timestamp": "2025-01-01 12:00:00"},
            {"role": "assistant", "response": "Active broker is active in treaty and claims modules.", "timestamp": "2025-01-01 12:01:10"},
            {"role": "user", "query": "Where is pending broker used?", "timestamp": "2025-01-01 12:02:00"},
            {"role": "assistant", "response": "Pending broker is used in TR Treaty module.", "timestamp": "2025-01-01 12:03:22"}
        ]
    }
)
print(response)

Example: Using GEMINI Client

from gqc_agent.core.orchestrator import AgentPipeline

GEMINI_API_KEY = "YOUR_GEMINI_API_KEY"

client = AgentPipeline(api_key=GEMINI_API_KEY, model="gemini-pro")
response = client.run_gqc({...})
print(response)

List Supported Models

from gqc_agent.core.orchestrator import AgentPipeline

print("GPT Models:", AgentPipeline.get_supported_models(api_key="YOUR_OPENAI_API_KEY"))
print("Gemini Models:", AgentPipeline.get_supported_models(api_key="YOUR_GEMINI_API_KEY"))

Load System Prompt

from gqc_agent.core.orchestrator import AgentPipeline

prompt = AgentPipeline.show_system_prompt(filename="sample.md")
print(prompt)

Project Status

  • Active Development

Planned updates:

  • More LLM vendor support
  • Better agent routing
  • Improved accuracy
  • Performance optimizations

License

MIT License

Author

BIG ENTITIES
BE AI Developers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gqc_agent-1.0.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gqc_agent-1.0.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file gqc_agent-1.0.0.tar.gz.

File metadata

  • Download URL: gqc_agent-1.0.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gqc_agent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6adefac8ab08c733e68ebc59f77d06f17b5cba4b32794fccc9c298f2582a2133
MD5 0d1f76fabdd58505aec8eb10951ce223
BLAKE2b-256 6e835fff8ca5000c556f294747da9a593b9cc2e77db02fd897c0a029ca8e33f6

See more details on using hashes here.

File details

Details for the file gqc_agent-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gqc_agent-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gqc_agent-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30aeadeed2217ac344f4ae945f440d8a2d73bb1a7fe9d6ecee3a6a8f977a78d
MD5 d5dd14c8b467f2806efd7e0618200e64
BLAKE2b-256 27a654a5f139fe0145136eeefab43c51b5703b9a94b2d72747ec512739a3492a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page