Skip to content

Commit f1702d2

Browse files
committed
Add image describer demo without tool calls
1 parent f33647b commit f1702d2

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GOOGLE_GENAI_USE_VERTEXAI=1
2+
GOOGLE_CLOUD_PROJECT=otel-starter-project
3+
GOOGLE_CLOUD_LOCATION=us-central1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import agent
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from textwrap import dedent
2+
from google.adk.agents.llm_agent import Agent
3+
4+
root_agent = Agent(
5+
model="gemini-2.5-flash",
6+
name="root_agent",
7+
description="An agent that can describe images",
8+
instruction=dedent("""\
9+
You are an agent that can describe images. You don't have any tools at your disposal.
10+
Some guidelines for you:
11+
12+
- Don't answer any questions that are opinion based or involve emotions.
13+
- Keep it brief and succinct
14+
- But also be descriptive
15+
- Answer in a professional tone
16+
"""),
17+
)

adk-sql-agent/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def setup_opentelemetry() -> None:
127127
# set_uploader(GcsUploader(bucket_path=OTEL_PYTHON_GCS_UPLOAD_BUCKET))
128128

129129
# Load instrumentors
130-
SQLite3Instrumentor().instrument()
130+
# SQLite3Instrumentor().instrument()
131131
VertexAIInstrumentor().instrument()
132132
GoogleGenAiSdkInstrumentor().instrument()
133133
AioHttpClientInstrumentor().instrument()

0 commit comments

Comments
 (0)