Spaces:
Sleeping
Sleeping
Update cellemetry/agents/analyst.py
Browse files- cellemetry/agents/analyst.py +10 -6
cellemetry/agents/analyst.py
CHANGED
|
@@ -3,6 +3,7 @@ Analyst Agent - Expert microscopy image analyst.
|
|
| 3 |
Segments biological components and computes statistics.
|
| 4 |
"""
|
| 5 |
from google.adk.agents import LlmAgent
|
|
|
|
| 6 |
from google.adk.tools.agent_tool import AgentTool
|
| 7 |
|
| 8 |
from ..tools import ANALYST_TOOLS
|
|
@@ -59,10 +60,13 @@ Return your findings as structured data including:
|
|
| 59 |
"""
|
| 60 |
|
| 61 |
analyst_agent = LlmAgent(
|
| 62 |
-
name="analyst",
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
| 68 |
)
|
|
|
|
| 3 |
Segments biological components and computes statistics.
|
| 4 |
"""
|
| 5 |
from google.adk.agents import LlmAgent
|
| 6 |
+
from google.adk.models.google_llm import Gemini
|
| 7 |
from google.adk.tools.agent_tool import AgentTool
|
| 8 |
|
| 9 |
from ..tools import ANALYST_TOOLS
|
|
|
|
| 60 |
"""
|
| 61 |
|
| 62 |
analyst_agent = LlmAgent(
|
| 63 |
+
name = "analyst",
|
| 64 |
+
description = "Expert microscopy analyst for localizing and quantifying biological structures",
|
| 65 |
+
model = Gemini(
|
| 66 |
+
model="gemini-3-flash-preview",
|
| 67 |
+
media_resolution="high"
|
| 68 |
+
),
|
| 69 |
+
instruction = ANALYST_INSTRUCTION,
|
| 70 |
+
tools = ANALYST_TOOLS,
|
| 71 |
+
output_key = "analyst_result",
|
| 72 |
)
|