Skip to content

support for context caching #211

@jheym

Description

@jheym
root_agent = LlmAgent(
    name="question_answer_agent",
    model="gemini-2.0-flash-001",
    description=(
        "QA Agent Answers Questions about cached content. Its system instructions have already been cached."
    ),
    generate_content_config=types.GenerateContentConfig(
        cached_content=cache.name
    )
)
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Tool config, tools and system instruction should not be set in therequest when using cached content.', 'status': 'INVALID_ARGUMENT

:(

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botcore[Component] This issue is related to the core interface and implementation

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions