Skip to content

Commit 72e7fe1

Browse files
committed
fix mypy
1 parent 01eb707 commit 72e7fe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

haystack/components/agents/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ async def _run_step_async(self, exe_context: _ExecutionContext, agent_span: Any)
824824
**exe_context.chat_generator_inputs,
825825
}
826826
step_span.set_content_tag("haystack.agent.step.input", chat_generator_inputs["messages"])
827-
result = await self.chat_generator.run_async(**chat_generator_inputs) # type: ignore[union-attr]
827+
result = await self.chat_generator.run_async(**chat_generator_inputs) # type: ignore[attr-defined]
828828
llm_messages = result["replies"]
829829
step_span.set_content_tag("haystack.agent.step.llm_output", llm_messages)
830830
exe_context.state.set("messages", llm_messages)
@@ -840,7 +840,7 @@ async def _run_step_async(self, exe_context: _ExecutionContext, agent_span: Any)
840840
)
841841
exe_context.state.set(key="messages", value=new_chat_history, handler_override=replace_values)
842842

843-
tool_invoker_result = await self._tool_invoker.run_async( # type: ignore[union-attr]
843+
tool_invoker_result = await self._tool_invoker.run_async(
844844
messages=modified_tool_call_messages, state=exe_context.state, **exe_context.tool_invoker_inputs
845845
)
846846
tool_messages = tool_invoker_result["tool_messages"]

0 commit comments

Comments
 (0)