8000 Prompt Title in LlmAgent triggers strange error · Issue #1432 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
8000
Prompt Title in LlmAgent triggers strange error #1432
Closed
@pixjobs

Description

@pixjobs

Steps to reproduce:

  1. 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]
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot_triagedcoreIssues related to the core interface and implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0