Skip to main content

PyPI version License: MIT Downloads LinkedIn

ClarifyingQuestionsGenerator

ClarifyingQuestionsGenerator is a Python package designed to refine task descriptions through an iterative process of asking clarifying questions. It uses GPT models from OpenAI to generate questions and refine tasks, streamlining the process of task clarification and ensuring tasks are well-understood and actionable.

Installation

To install ClarifyingQuestionsGenerator, you can use pip:

pip install clarifyquestgen

Usage

As a Python Module

You can use ClarifyingQuestionsGenerator as a module in your Python scripts.

Example:

from clarifyquestgen import ClarifyingQuestionsGenerator

# Initialize the generator with a task, instruction, and your OpenAI API key
clarifier = ClarifyingQuestionsGenerator(
    task="Describe the task here",
    instruction="Additional instructions here",
    gpt_api_key='your-openai-api-key'
)

# Run the generator to refine your task
refined_task = clarifier.run()
print("Refined Task Description:")
print(refined_task)

Customizing Your Generator

You can customize the behavior of ClarifyingQuestionsGenerator by adjusting the initialization parameters, such as the model, temperature, max tokens, etc., to fit the specific needs of your application or to tweak the behavior of the GPT model.

Output Example

When you run ClarifyingQuestionsGenerator, it iteratively asks questions, refines the task, and analyzes its feasibility until a satisfactory level of clarity and feasibility is reached. Here is an example interaction:

Question 1: What specific parts of the database schema need to be refactored?
...user chooses an answer...
Question 2: What is the expected format or style of the comments?
...user chooses an answer...
...
Refined Task Description:
Refined task: Add comments to specific sections or functions within two code files. Follow the expected format for comments and adhere to specific guidelines or conventions provided.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page.

License

MIT

Metadata

Release files for clarifyquestgen 2025.5.151003

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clarifyquestgen 2025.5.151003
File Size Uploaded Provenance Actions
clarifyquestgen-2025.5.151003.tar.gz 5.0 kB Without provenance Details for clarifyquestgen-2025.5.151003.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clarifyquestgen 2025.5.151003
File Interpreter ABI Platform Actions
clarifyquestgen-2025.5.151003-py3-none-any.whl Python 3 none any Details for clarifyquestgen-2025.5.151003-py3-none-any.whl

Total release size: 10.7 kB

Release files / clarifyquestgen-2025.5.151003.tar.gz

Download URL clarifyquestgen-2025.5.151003.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3b50a54339da447fe6b76bb2cb160f134db269deee4c0cc47c85f1abc4b477e
BLAKE2b-256 checksum
How to use checksums
31727855442936af6bf3348dd9ea2a6a07f096d4bb8b4411bc62642db2ee9f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / clarifyquestgen-2025.5.151003-py3-none-any.whl

Download URL clarifyquestgen-2025.5.151003-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eab86904e1bc67ca325952f81b54ec6b7b4cc2d0161aa8cbdbc87a75558a6c4a
BLAKE2b-256 checksum
How to use checksums
28083857a293b987c39f0812c80113e942489b867173d507756260bd0afb9bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for clarifyquestgen 2025.5.151003

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page