diff --git a/src/rai/rai/agents/tool_runner.py b/src/rai/rai/agents/tool_runner.py index 4522ef7e..3df45329 100644 --- a/src/rai/rai/agents/tool_runner.py +++ b/src/rai/rai/agents/tool_runner.py @@ -109,7 +109,10 @@ def run_one(call: ToolCall): artifact = cast(MultimodalArtifact, artifact) store_artifacts(output.tool_call_id, [artifact]) - if artifact is not None: # multimodal case + if artifact is not None and ( + len(artifact.get("images", [])) > 0 + or len(artifact.get("audios", [])) > 0 + ): # multimodal case, we currently support images and audios artifacts return ToolMultimodalMessage( content=str_output(output.content), name=call["name"],