Skip to content

Commit

Permalink
use singular prompt value
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Jan 6, 2025
1 parent 615a54b commit c5554ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion patchwork/steps/AgenticLLM/AgenticLLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, inputs):
self.agentic_strategy = AgenticStrategy(
llm_client=AioLlmClient.create_aio_client(inputs),
tool_set=Tool.get_tools(path=base_path),
template_data=inputs.get("prompt_values"),
template_data=inputs.get("prompt_value"),
system_prompt_template=inputs.get("system_prompt"),
user_prompt_template=inputs.get("user_prompt"),
)
Expand Down
9 changes: 2 additions & 7 deletions patchwork/steps/AgenticLLM/typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
from patchwork.steps.CallLLM.CallLLM import TOKEN_URL


class __AgenticLLMInputsRequired(TypedDict):
# PreparePromptInputs
prompt_template_file: Annotated[str, StepTypeConfig(is_config=True)]
prompt_id: Annotated[str, StepTypeConfig(is_config=True)]


class AgenticLLMInputs(__AgenticLLMInputsRequired, total=False):
prompt_values: Annotated[List[Dict[str, Any]], StepTypeConfig(or_op=["prompt_value_file"])]
class AgenticLLMInputs(TypedDict, total=False):
prompt_value: Dict[str, Any]
system_prompt: str
user_prompt: str
max_llm_calls: Annotated[int, StepTypeConfig(is_config=True)]
Expand Down

0 comments on commit c5554ff

Please sign in to comment.