Skip to main content

PyPI version
License: MIT
Downloads
LinkedIn

task_refiner_llm

task_refiner_llm is a Python package that provides a function to convert loose user briefs into structured, implementation-ready task descriptions formatted in strict JSON. It leverages language models with robust extraction techniques to ensure precise, usable output for software engineering tasks.

Installation

Install via pip:

pip install task_refiner_llm  

Usage

The main function, task_refiner_llm, accepts an LLM instance and a raw user brief to return a structured JSON object describing the refined task. If no LLM is provided, it initializes a deterministic ChatLLM7. The function employs llmatch for reliable extraction of JSON from LLM output, raising errors if extraction or parsing fails.

Example

from langchain_core.language_models import BaseChatModel  
from task_refiner_llm import refine_task_with_llm  
  
# Optional: create your own LLM or pass None to use default  
result = refine_task_with_llm(  
    llm=None,  
    custom_text="Create a script to analyze sales data and generate a report.",  
    project_name="SalesAnalysis",  
    audience="junior developer",  
    include_examples=True  
)  
  
print(result)  

This call refines an unstructured brief into a detailed, JSON-formatted task description suitable for implementation.

Author

Author: Eugene Evstafev hi@eugene.plus
Repository: https://github.com/chigwell/refine_task_with_llm

Metadata

Release files for task-refiner-llm 2025.9.92037

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

Source distribution (sdist)

Source distribution for task-refiner-llm 2025.9.92037
File Size Uploaded Provenance Actions
task_refiner_llm-2025.9.92037.tar.gz 4.0 kB Without provenance Details for task_refiner_llm-2025.9.92037.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for task-refiner-llm 2025.9.92037
File Interpreter ABI Platform Actions
task_refiner_llm-2025.9.92037-py3-none-any.whl Python 3 none any Details for task_refiner_llm-2025.9.92037-py3-none-any.whl

Total release size: 8.6 kB

Release files / task_refiner_llm-2025.9.92037.tar.gz

Download URL task_refiner_llm-2025.9.92037.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
deb36d84fdced9c1a2864bbe53fc0652135014d14a5d1a6ed08f652e2092643d
BLAKE2b-256 checksum
How to use checksums
e2c40912d343a3d7cb656833d840ee4e57326dcf79b6ee89700f7e4c5a268f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / task_refiner_llm-2025.9.92037-py3-none-any.whl

Download URL task_refiner_llm-2025.9.92037-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65eaf7babae62d761b2899fb854ce2bb6532643463f0f2643b31c019a79c25ad
BLAKE2b-256 checksum
How to use checksums
312c7e6acdbe032e5bfb5378d869b64e1dd9ca85195276d1b55d35708f250326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for task-refiner-llm 2025.9.92037

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