Skip to content

Commit 21948cb

Browse files
Jatin-Roopchandaniwhoisarpit
authored andcommitted
add agent_model and strategy_model
1 parent 025d233 commit 21948cb

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

patchwork/steps/SlackAgent/SlackAgent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@ def __init__(self, inputs: dict):
3434

3535
llm_client = AioLlmClient.create_aio_client(inputs)
3636

37-
model = inputs.get("model")
38-
37+
agent_model = inputs.get("agent_model", "gemini-2.0-flash")
38+
strategy_model = inputs.get("strategy_model", "gemini-2.0-flash")
3939
api_tool = APIRequestTool(
4040
headers=self.headers,
4141
)
4242

4343

4444
self.agentic_strategy = AgenticStrategyV2(
45-
model=model,
45+
model=agent_model,
4646
llm_client=llm_client,
4747
system_prompt_template=system_prompt,
4848
template_data={},
4949
user_prompt_template=mustache_render(inputs.get("user_prompt"), inputs.get("prompt_value")),
5050
agent_configs=[
5151
AgentConfig(
5252
name="Slack Assistant",
53-
model=model,
53+
model=strategy_model,
5454
tool_set=dict(
5555
make_api_request=api_tool
5656
),

patchwork/steps/SlackAgent/typed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class __SlackAgentInputsRequired(TypedDict):
1212

1313
class SlackAgentInputs(__SlackAgentInputsRequired, total=False):
1414
max_agent_calls: int
15-
model: str
15+
strategy_model: str
16+
agent_model: str
1617
openai_api_key: Annotated[str, StepTypeConfig(or_op=["google_api_key", "anthropic_api_key"])]
1718
anthropic_api_key: Annotated[str, StepTypeConfig(or_op=["google_api_key", "openai_api_key"])]
1819
google_api_key: Annotated[str, StepTypeConfig(or_op=["openai_api_key", "anthropic_api_key"])]

0 commit comments

Comments
 (0)