Closed
Description
Steps to reproduce:
- If the prompt name is spelled wrong in the instruction, the ADK Web throws a
{"error": "Fail to load 'workmatch' module. unmatched ')' (expanded_insights.py, line 14)"}
Where Line 14 is beyond the end of the file -> This is caused by the prompt not being referenced correctly.
from google.adk.agents import LlmAgent
from workmatch.utils.env import get_model
from ..prompt import EXPANDED_ROLE_INSIGHTS_PROMPT_WITH_LISTINGS
from ..tools.career_tools import summarise_expanded_job_roles_tool
expanded_insights_agent = LlmAgent(
name="expanded_insights_agent",
model=get_model(),
description="Test",
instruction=EXPANDED_ROLE_INSIGHTS_PROMPT_WITH_LISTINGS,
tools=[summarise_expanded_job_roles_tool]
)