mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
77725913fa
* feat: add package query in draft.py (not yet enabled) * feat: integrate package query into task_gen and cache runtime environment - Remove pkg_query modifications from draft components - Add package declaration requirement in task_gen prompts - Add optional packages field to CodingSketch model - Cache runtime_environment in scenario object for loop-wide reuse - Parse packages from LLM response and generate runtime environment dynamically * some refinement * feat: merge default packages with CLI args in package_info.py * fix: code style --------- Co-authored-by: Qizheng Li <jenssenlee@163.com>
9 lines
439 B
Python
9 lines
439 B
Python
from rdagent.components.coder.CoSTEER.task import CoSTEERTask
|
|
|
|
|
|
# Because we use isinstance to distinguish between different types of tasks, we need to use sub classes to represent different types of tasks
|
|
class PipelineTask(CoSTEERTask):
|
|
def __init__(self, name: str = "Pipeline", package_info: str | None = None, *args, **kwargs) -> None:
|
|
super().__init__(name=name, *args, **kwargs)
|
|
self.package_info = package_info
|