Skip to content

Memory Bank - Memory Generation with Files #4813

@furoTmark

Description

@furoTmark

Describe the Bug:
Following the https://github.com/GoogleCloudPlatform/generative-ai/blob/main/agents/agent_engine/memory_bank/tutorial_get_started_with_multimodal_agents_with_memory_bank.ipynb tutorial, I tried to generate memories with files, but they are not appearing. I also tried the REST API, it has the same result. There is no error message, also cannot find any error log, only that it was called, but no memory is generated. (Normal text memories work)

Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:

  1. Install vertexai
  2. Run the python code for memory generation (see below)
  3. wait for completion

Expected Behavior:
A memory appears in the Memory section of the Vertex AI Agent Engine.

Observed Behavior:
Finishes without any errors shown, also no error on log explorer

Environment Details:

  • ADK Library Version (pip show google-adk): 1.26.0
  • Desktop OS:** [e.g., macOS, Linux, Windows]: Windows
  • Python Version (python -V): 3.12

Model Information:

  • Are you using LiteLLM: No
  • Which model is being used: (e.g., gemini-2.5-pro) N/A

Minimal Reproduction Code:
Please provide a code snippet or a link to a Gist/repo that isolates the issue.

client.agent_engines.memories.generate(
    name=AGENT_ENGINE_NAME,
    scope={"app_name": APP_NAME},
    direct_contents_source={
        "events": [
            {
                "content": {
                    "role": "user",
                    "parts": [
                        {"text": ("This is ...")},
                        {
                            "file_data": {
                                "file_uri": "gs://.....jpg",
                                "mime_type": "image/jpeg",
                            }
                        },
                    ],
                }
            }
        ]
    },
    config={"wait_for_completion": True},
)

How often has this issue occurred?:

  • Always (100%)

Metadata

Metadata

Assignees

Labels

agent engine[Component] This issue is related to Vertex AI Agent Engine

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions