Refine unstructured briefs into implementation-ready JSON via LLM7 and llmatch.
Project description
refine_task_with_llm
refine_task_with_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 refine_task_with_llm
Usage
The main function, refine_task_with_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 refine_task_with_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file task_refiner_llm-2025.9.9.tar.gz.
File metadata
- Download URL: task_refiner_llm-2025.9.9.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7af3d451b547ddbe6d6dd6b9a746e2da1074f9a3667109ce98a0ed77cd955097
|
|
| MD5 |
9f60bcb537e4fe8fe34866c1bfee7009
|
|
| BLAKE2b-256 |
d25b752a68e7965b513762ab324fc66df2bc128c16c9d3c6252a0ff49b9f1d81
|
File details
Details for the file task_refiner_llm-2025.9.9-py3-none-any.whl.
File metadata
- Download URL: task_refiner_llm-2025.9.9-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e0c37e48a19cf5b8a77d706887ddeffafdfa8b45fa4c602b1ac501f2b28ebf
|
|
| MD5 |
662826acf71eaebb93ffd3020862fbc2
|
|
| BLAKE2b-256 |
d8c200862b7edd128283e8d65cf86b6d2fbf91a85d4d470c386a3037309ac9bc
|