File tree Expand file tree Collapse file tree
patchwork/steps/SlackAgent Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class __SlackAgentInputsRequired(TypedDict):
1212
1313class 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" ])]
You can’t perform that action at this time.
0 commit comments