Skip to main content

Refine unstructured briefs into implementation-ready JSON via LLM7 and llmatch.

Project description

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

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

task_refiner_llm-2025.9.92037.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

task_refiner_llm-2025.9.92037-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file task_refiner_llm-2025.9.92037.tar.gz.

File metadata

  • Download URL: task_refiner_llm-2025.9.92037.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for task_refiner_llm-2025.9.92037.tar.gz
Algorithm Hash digest
SHA256 deb36d84fdced9c1a2864bbe53fc0652135014d14a5d1a6ed08f652e2092643d
MD5 6eba0bd0438129b71da621bd8b53a78b
BLAKE2b-256 e2c40912d343a3d7cb656833d840ee4e57326dcf79b6ee89700f7e4c5a268f7f

See more details on using hashes here.

File details

Details for the file task_refiner_llm-2025.9.92037-py3-none-any.whl.

File metadata

File hashes

Hashes for task_refiner_llm-2025.9.92037-py3-none-any.whl
Algorithm Hash digest
SHA256 65eaf7babae62d761b2899fb854ce2bb6532643463f0f2643b31c019a79c25ad
MD5 c7863c8bd374b5610a93442fb21e2b3d
BLAKE2b-256 312c7e6acdbe032e5bfb5378d869b64e1dd9ca85195276d1b55d35708f250326

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