ultragpt


Nameultragpt JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/Kawai-Senpai
SummaryUltraGPT: A modular library for advanced GPT-based reasoning and step pipelines
upload_time2025-02-05 12:06:18
maintainerNone
docs_urlNone
authorRanit Bhowmick
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🤖 UltraGPT

**A powerful and modular library for advanced GPT-based reasoning and step pipelines**

## 🌟 Features

- **📝 Steps Pipeline:** Break down complex tasks into manageable steps
  - Automatic step generation and processing
  - Verification at each step
  - Detailed progress tracking

- **🧠 Reasoning Pipeline:** Advanced reasoning capabilities
  - Multi-iteration thought process
  - Building upon previous reasoning
  - Comprehensive analysis

- **🛠️ Tool Integration:** 
  - Web search capabilities
  - Calculator functionality
  - Extensible tool framework

## 📦 Installation

```bash
pip install git+https://github.com/Kawai-Senpai/UltraGPT.git
```

## 🚀 Quick Start

```python
from ultragpt import UltraGPT

if __name__ == "__main__":
    # Initialize UltraGPT
    ultragpt = UltraGPT(
        api_key="your-openai-api-key",
        verbose=True
    )

    # Example chat session
    final_output, tokens_used, details = ultragpt.chat([
        {"role": "user", "content": "Write a story about an elephant."}
    ])

    print("Final Output:", final_output)
    print("Total tokens used:", tokens_used)
```

## 📚 Advanced Usage

### Customizing Pipeline Settings

```python
ultragpt = UltraGPT(
    api_key="your-openai-api-key",
    model="gpt-4o",  # Specify model
    temperature=0.7,  # Adjust creativity
    reasoning_iterations=3,  # Set reasoning depth
    steps_pipeline=True,
    reasoning_pipeline=True,
    verbose=True
)
```

### Using Tools

```python
ultragpt = UltraGPT(
    api_key="your-openai-api-key",
    tools=["web-search", "calculator"],
    tools_config={
        "web-search": {
            "max_results": 1,
            "model": "gpt-4o"
        },
        "calculator": {
            "model": "gpt-4o"
        }
    }
)
```

## 🔧 Configuration Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `api_key` | str | Required | Your OpenAI API key |
| `model` | str | "gpt-4o" | Model to use |
| `temperature` | float | 0.7 | Output randomness |
| `reasoning_iterations` | int | 3 | Number of reasoning steps |
| `tools` | list | [] | Enabled tools |
| `verbose` | bool | False | Enable detailed logging |

## 🌐 Tool System

UltraGPT supports various tools to enhance its capabilities:

### Web Search
- Performs intelligent web searches
- Summarizes findings
- Integrates results into responses

### Calculator
- Handles mathematical operations
- Supports complex calculations
- Provides step-by-step solutions

## 🔄 Pipeline System

### Steps Pipeline
1. Task Analysis
2. Step Generation
3. Step-by-Step Execution
4. Progress Verification
5. Final Compilation

### Reasoning Pipeline
1. Initial Analysis
2. Multi-iteration Thinking
3. Thought Development
4. Conclusion Formation

## 📋 Requirements

- Python 3.6+
- OpenAI API key
- Internet connection (for web tools)

## 🤝 Contributing

Contributions are always welcome! Here's how you can help:

1. Fork the repository
2. Create a new branch (`git checkout -b feature/improvement`)
3. Make changes
4. Commit (`git commit -am 'Add new feature'`)
5. Push (`git push origin feature/improvement`)
6. Open a Pull Request

## 📝 License

This project is MIT licensed - see the [LICENSE](LICENSE) file for details.

## 👥 Author

**Ranit Bhowmick**
- Email: bhowmickranitking@duck.com
- GitHub: [@Kawai-Senpai](https://github.com/Kawai-Senpai)

---

<div align="center">
Made with ❤️ by Ranit Bhowmick
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Kawai-Senpai",
    "name": "ultragpt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ranit Bhowmick",
    "author_email": "bhowmickranitking@duck.com",
    "download_url": "https://files.pythonhosted.org/packages/39/e3/26b0a27048f23dc682991e68db5e9cc998158ec216cff2e8cfb6b481a6eb/ultragpt-2.1.0.tar.gz",
    "platform": null,
    "description": "# \ud83e\udd16 UltraGPT\r\n\r\n**A powerful and modular library for advanced GPT-based reasoning and step pipelines**\r\n\r\n## \ud83c\udf1f Features\r\n\r\n- **\ud83d\udcdd Steps Pipeline:** Break down complex tasks into manageable steps\r\n  - Automatic step generation and processing\r\n  - Verification at each step\r\n  - Detailed progress tracking\r\n\r\n- **\ud83e\udde0 Reasoning Pipeline:** Advanced reasoning capabilities\r\n  - Multi-iteration thought process\r\n  - Building upon previous reasoning\r\n  - Comprehensive analysis\r\n\r\n- **\ud83d\udee0\ufe0f Tool Integration:** \r\n  - Web search capabilities\r\n  - Calculator functionality\r\n  - Extensible tool framework\r\n\r\n## \ud83d\udce6 Installation\r\n\r\n```bash\r\npip install git+https://github.com/Kawai-Senpai/UltraGPT.git\r\n```\r\n\r\n## \ud83d\ude80 Quick Start\r\n\r\n```python\r\nfrom ultragpt import UltraGPT\r\n\r\nif __name__ == \"__main__\":\r\n    # Initialize UltraGPT\r\n    ultragpt = UltraGPT(\r\n        api_key=\"your-openai-api-key\",\r\n        verbose=True\r\n    )\r\n\r\n    # Example chat session\r\n    final_output, tokens_used, details = ultragpt.chat([\r\n        {\"role\": \"user\", \"content\": \"Write a story about an elephant.\"}\r\n    ])\r\n\r\n    print(\"Final Output:\", final_output)\r\n    print(\"Total tokens used:\", tokens_used)\r\n```\r\n\r\n## \ud83d\udcda Advanced Usage\r\n\r\n### Customizing Pipeline Settings\r\n\r\n```python\r\nultragpt = UltraGPT(\r\n    api_key=\"your-openai-api-key\",\r\n    model=\"gpt-4o\",  # Specify model\r\n    temperature=0.7,  # Adjust creativity\r\n    reasoning_iterations=3,  # Set reasoning depth\r\n    steps_pipeline=True,\r\n    reasoning_pipeline=True,\r\n    verbose=True\r\n)\r\n```\r\n\r\n### Using Tools\r\n\r\n```python\r\nultragpt = UltraGPT(\r\n    api_key=\"your-openai-api-key\",\r\n    tools=[\"web-search\", \"calculator\"],\r\n    tools_config={\r\n        \"web-search\": {\r\n            \"max_results\": 1,\r\n            \"model\": \"gpt-4o\"\r\n        },\r\n        \"calculator\": {\r\n            \"model\": \"gpt-4o\"\r\n        }\r\n    }\r\n)\r\n```\r\n\r\n## \ud83d\udd27 Configuration Options\r\n\r\n| Parameter | Type | Default | Description |\r\n|-----------|------|---------|-------------|\r\n| `api_key` | str | Required | Your OpenAI API key |\r\n| `model` | str | \"gpt-4o\" | Model to use |\r\n| `temperature` | float | 0.7 | Output randomness |\r\n| `reasoning_iterations` | int | 3 | Number of reasoning steps |\r\n| `tools` | list | [] | Enabled tools |\r\n| `verbose` | bool | False | Enable detailed logging |\r\n\r\n## \ud83c\udf10 Tool System\r\n\r\nUltraGPT supports various tools to enhance its capabilities:\r\n\r\n### Web Search\r\n- Performs intelligent web searches\r\n- Summarizes findings\r\n- Integrates results into responses\r\n\r\n### Calculator\r\n- Handles mathematical operations\r\n- Supports complex calculations\r\n- Provides step-by-step solutions\r\n\r\n## \ud83d\udd04 Pipeline System\r\n\r\n### Steps Pipeline\r\n1. Task Analysis\r\n2. Step Generation\r\n3. Step-by-Step Execution\r\n4. Progress Verification\r\n5. Final Compilation\r\n\r\n### Reasoning Pipeline\r\n1. Initial Analysis\r\n2. Multi-iteration Thinking\r\n3. Thought Development\r\n4. Conclusion Formation\r\n\r\n## \ud83d\udccb Requirements\r\n\r\n- Python 3.6+\r\n- OpenAI API key\r\n- Internet connection (for web tools)\r\n\r\n## \ud83e\udd1d Contributing\r\n\r\nContributions are always welcome! Here's how you can help:\r\n\r\n1. Fork the repository\r\n2. Create a new branch (`git checkout -b feature/improvement`)\r\n3. Make changes\r\n4. Commit (`git commit -am 'Add new feature'`)\r\n5. Push (`git push origin feature/improvement`)\r\n6. Open a Pull Request\r\n\r\n## \ud83d\udcdd License\r\n\r\nThis project is MIT licensed - see the [LICENSE](LICENSE) file for details.\r\n\r\n## \ud83d\udc65 Author\r\n\r\n**Ranit Bhowmick**\r\n- Email: bhowmickranitking@duck.com\r\n- GitHub: [@Kawai-Senpai](https://github.com/Kawai-Senpai)\r\n\r\n---\r\n\r\n<div align=\"center\">\r\nMade with \u2764\ufe0f by Ranit Bhowmick\r\n</div>\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "UltraGPT: A modular library for advanced GPT-based reasoning and step pipelines",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Kawai-Senpai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5130e183d8cfb1e16f74a5b49d8d226389eeafd4079585c290cd8c4d6a89605a",
                "md5": "066e77f615e9b0cad403b4c3e8f44f98",
                "sha256": "d6315c70cea70e86cf97cf93e57f1f8031e8afa4f1a6cd8bacb115d2d8d92b65"
            },
            "downloads": -1,
            "filename": "ultragpt-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "066e77f615e9b0cad403b4c3e8f44f98",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 17199,
            "upload_time": "2025-02-05T12:06:16",
            "upload_time_iso_8601": "2025-02-05T12:06:16.028148Z",
            "url": "https://files.pythonhosted.org/packages/51/30/e183d8cfb1e16f74a5b49d8d226389eeafd4079585c290cd8c4d6a89605a/ultragpt-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "39e326b0a27048f23dc682991e68db5e9cc998158ec216cff2e8cfb6b481a6eb",
                "md5": "ea14078d996160d97dcaba763a8221c8",
                "sha256": "5a9f1bd33a2a5238ad4d2d8ce5fd26b3fa0d4984e1f73277d906edbb0fab7e9e"
            },
            "downloads": -1,
            "filename": "ultragpt-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ea14078d996160d97dcaba763a8221c8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 15183,
            "upload_time": "2025-02-05T12:06:18",
            "upload_time_iso_8601": "2025-02-05T12:06:18.171963Z",
            "url": "https://files.pythonhosted.org/packages/39/e3/26b0a27048f23dc682991e68db5e9cc998158ec216cff2e8cfb6b481a6eb/ultragpt-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-05 12:06:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ultragpt"
}
        
Elapsed time: 0.89317s