Skip to content

Commit de79f1d

Browse files
Tulio Coppolatuliocoppola
authored andcommitted
refactor: moves prompt_modules to cli scope
Signed-off-by: Tulio Coppola <[email protected]>
1 parent 167483b commit de79f1d

File tree

113 files changed

+9
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+9
-24
lines changed

cli/decompose/pipeline.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77
from mellea.backends.ollama import OllamaModelBackend
88
from mellea.backends.openai import OpenAIBackend
99
from mellea.backends.types import ModelOption
10-
from mellea.helpers.prompt_modules.decompose import (
10+
11+
from .prompt_modules import (
1112
constraint_extractor,
1213
subtask_constraint_assign,
1314
subtask_list,
1415
subtask_prompt_generator,
1516
)
16-
from mellea.helpers.prompt_modules.decompose.subtask_constraint_assign import (
17-
SubtaskPromptConstraintsItem,
18-
)
19-
from mellea.helpers.prompt_modules.decompose.subtask_list import SubtaskItem
20-
from mellea.helpers.prompt_modules.decompose.subtask_prompt_generator import (
21-
SubtaskPromptItem,
22-
)
17+
from .prompt_modules.subtask_constraint_assign import SubtaskPromptConstraintsItem
18+
from .prompt_modules.subtask_list import SubtaskItem
19+
from .prompt_modules.subtask_prompt_generator import SubtaskPromptItem
2320

2421

2522
class DecompSubtasksResult(TypedDict):
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44

55
from mellea import MelleaSession
66
from mellea.backends.types import ModelOption
7-
from mellea.helpers.prompt_modules._prompt_modules import (
8-
PromptModule,
9-
PromptModuleString,
10-
)
117
from mellea.stdlib.instruction import Instruction
128

9+
from .._prompt_modules import PromptModule, PromptModuleString
1310
from ._exceptions import BackendGenerationError, TagExtractionError
1411
from ._prompt import get_system_prompt, get_user_prompt
1512

0 commit comments

Comments
 (0)