GoogleCloudPlatform / GoogleCloudPlatform/generative-ai

[Bug]: MemoryBank with Crewai example not working

Open
#2,272 0 comments 0 reactions 1 assignee Claimed by @inardini View on GitHub
Dominant language
Jupyter Notebook
Stars
17.7k
Forks
4.5k
Avg merge
12h 38m
Merged PRs (30d)
42

Description

### File Name

generative-ai/blob/main/gemini/agent-engine/memory/get_started_with_memory_bank_crewai.ipynb

### What happened?

while trying out crewai example with memory bank

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/agent-engine/memory/get_started_with_memory_bank_crewai.ipynb

got below error ..any thoughts on how to fix

[/usr/local/lib/python3.11/dist-packages/crewai/memory/contextual/contextual_memory.py](https://localhost:8080/#) in (.0)
114
115 formatted_memories = "\n".join(
--> 116 f"- {result['context']}" for result in external_memories
117 )
118 return f"External memories:\n{formatted_memories}"

KeyError: 'context'

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.