Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/dogfooding/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import os

from veadk import Agent
from veadk.utils.pdf_to_images import pdf_to_images_before_model_callback

# The schema mirrors the web UI's AgentDraft and the codegen catalog
# (frontend/src/create/veadkCatalog.ts). Output values MUST come from the
Expand Down Expand Up @@ -90,6 +91,7 @@
name="agent_builder",
description="VeADK Agent Builder:把自然语言需求转化为智能体配置 JSON(前端据此生成 VeADK 项目)。",
instruction=lambda _ctx: INSTRUCTION,
before_model_callback=pdf_to_images_before_model_callback,
**({"model_name": _MODEL_A} if _MODEL_A else {}),
)

Expand Down
2 changes: 2 additions & 0 deletions examples/dogfooding_b/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import os

from veadk import Agent
from veadk.utils.pdf_to_images import pdf_to_images_before_model_callback

# The two builder apps share one instruction. ADK puts the agents dir on
# sys.path, so the sibling app package is importable; fall back to the
Expand All @@ -39,6 +40,7 @@
name="agent_builder_b",
description="VeADK Agent Builder (B):A/B 对比中的第二个构建器。",
instruction=lambda _ctx: INSTRUCTION,
before_model_callback=pdf_to_images_before_model_callback,
**({"model_name": _MODEL_B} if _MODEL_B else {}),
)

Expand Down
2 changes: 2 additions & 0 deletions examples/front_with_sso/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
"""

from veadk import Agent
from veadk.utils.pdf_to_images import pdf_to_images_before_model_callback

agent = Agent(
name="sso_demo_agent",
description="Demo agent served behind an SSO login page.",
instruction="You are a helpful assistant. Answer concisely.",
before_model_callback=pdf_to_images_before_model_callback,
)

# Required by the Google ADK agent loader.
Expand Down
2 changes: 2 additions & 0 deletions examples/web_demo/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"""

from veadk import Agent
from veadk.utils.pdf_to_images import pdf_to_images_before_model_callback

agent = Agent(
name="web_demo",
Expand All @@ -32,6 +33,7 @@
"You are a helpful assistant. Answer clearly and concisely in the "
"user's language."
),
before_model_callback=pdf_to_images_before_model_callback,
)

# Required by the ADK agent loader.
Expand Down
Loading