feat: add agentic video analysis and clarify action results
Report device actions as dispatched and preserve full failure details. Route Flash through McpActionExecutor and use ToolFailure across helper tools and agent loops instead of inferring failure from response text. Require model-provided descriptions for coordinate targets. Keep observed element metadata separate from those descriptions in safety checks, visual summaries, history, and frontend labels. Add Gemini Interactions API video analysis with configurable processing mode, chunk size, and timeouts. Centralize Google provider capabilities and token usage normalization, and update google-genai to 2.22.0. Preserve system instructions on follow-up interactions, replan pending chunks when falling back to static processing, and reject unanswered native video and audio segments instead of caching placeholder results. Keep helper-tool failure status intact through history tools and committee calls. Validation: 1,762 Python unit tests passed (3 skipped), 40 frontend formatter tests passed, and the production UI build completed. Ruff lint, formatting, the quality ratchet, and git diff checks passed.
This commit is contained in:
1 parent
611d1a0947
commit
a45daf23f8
120 files changed
+6301
-1710
No files matched your search
@@ -19,6 +19,7 @@ from typing import Any
|
||||
from langchain_core.tools import BaseTool
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from artemis.core.tool_failure import ToolFailure
|
||||
from artemis.agents.log_analyzer.log_analyzer import LogAnalyzerNode
|
||||
from artemis.context import ArtemisContext
|
||||
from artemis.data_engine.trace import trace_langchain_tool
|
||||
@@ -83,7 +84,7 @@ class AnalyzeLogsTool(ArtemisTool):
|
||||
st = state if state is not None else kwargs.get("state")
|
||||
logger.info(f"analyze_logs tool called with query: '{query}'")
|
||||
if ctx is None:
|
||||
return "Error: ArtemisContext is required for LogAnalyzer."
|
||||
return ToolFailure("Error: ArtemisContext is required for LogAnalyzer.")
|
||||
analyst = LogAnalyzerNode(ctx)
|
||||
result = await analyst.run(query, st)
|
||||
return result
|
||||
|
||||
Reference in new issue
Block a user