Skip to content

Commit 88878fd

Browse files
committed
Fix types on AgenticLLMV2 and DatabaseAgent
1 parent a740311 commit 88878fd

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

patchwork/steps/AgenticLLMV2/AgenticLLMV2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ def __init__(self, inputs):
1818
base_path = str(Path.cwd())
1919
self.conversation_limit = int(inputs.get("max_agent_calls", 1))
2020
self.agentic_strategy = AgenticStrategyV2(
21-
model="claude-3-5-sonnet-latest",
21+
model=inputs.get("strategy_model", "claude-3-5-sonnet-latest"),
2222
llm_client=AioLlmClient.create_aio_client(inputs),
2323
template_data=inputs.get("prompt_value", {}),
2424
system_prompt_template=inputs.get("system_prompt", "Summarise from our previous conversation"),
2525
user_prompt_template=inputs.get("user_prompt"),
2626
agent_configs=[
2727
AgentConfig(
2828
name="Assistant",
29-
model="claude-3-7-sonnet-latest",
29+
model=inputs.get("agent_model", "claude-3-7-sonnet-latest"),
3030
tool_set=Tool.get_tools(path=base_path),
3131
system_prompt=inputs.get("agent_system_prompt"),
3232
)

patchwork/steps/AgenticLLMV2/typed.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ class AgenticLLMV2Inputs(TypedDict, total=False):
99
system_prompt: str
1010
user_prompt: str
1111
max_agent_calls: Annotated[int, StepTypeConfig(is_config=True)]
12+
google_api_key: str
1213
anthropic_api_key: str
14+
openai_api_key: str
15+
strategy_model: str
16+
agent_model: str
1317
agent_system_prompt: str
14-
example_json: str
18+
example_json: Dict
1519

1620

1721
class AgenticLLMV2Outputs(TypedDict):

patchwork/steps/DatabaseAgent/typed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DatabaseAgentInputs(__DatabaseAgentOutputsRequiredInputs, total=False):
2828
google_api_key: Annotated[
2929
str, StepTypeConfig(is_config=True, or_op=["patched_api_key", "openai_api_key", "anthropic_api_key"])
3030
]
31-
example_json: str
31+
example_json: Dict
3232

3333

3434
class DatabaseAgentOutputs(TypedDict):

0 commit comments

Comments
 (0)