07-memory-persistent-agents fails with on-demand throughput error

Aperta
#145 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@AgainstTheGoldenMileNetwork ci sta già lavorando.

Dal 7/11/2025.

  • #227 di @tomdee2 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
aws, python
Ambito
ai, backend

Direzione di ricerca

Read the 07-memory-persistent-agents sample and the linked mem0_memory.py lines 152–164 to see how the tool selects its model and whether the sample exposes an override. Check the open pull request #227 for current work. Done means the sample provides a usable configuration for the selected Bedrock model and the reported on-demand throughput error is addressed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

I'm using Claude 3.7 Sonnet, like so...

# Create an agent with memory, websearch tool
USER_ID = "TEST" # Replace with actual user ID

memory_agent = Agent(
    system_prompt=SYSTEM_PROMPT,
    model="us.anthropic.claude-3-7-sonnet-20250219-v1:0",  # Optional: Specify the model ID
    tools=[mem0_memory, websearch],
)

But using the mem0_memory tool errors with a references to anthropic.claude-3-5-haiku-20241022-v1.

An error occurred (ValidationException) when calling the InvokeModel operation: Invocation of model ID          │
anthropic.claude-3-5-haiku-20241022-v1:0 with on-demand throughput isn’t supported. Retry your request with the │
ID or ARN of an inference profile that contains this model. 

I think it's because the mem0_memory tool defaults to Haiku and the sample doesn't provide the configuration to override it.

https://github.com/strands-agents/tools/blob/132ed4be782713e483c3e7b15040d9555b479bb5/src/strands_tools/mem0_memory.py#L152-L164

Lingua principale
Python
Stelle
897
Fork
450
Merge medio
1g 9h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di strands-agents/samples

Tutte le issue di strands-agents/samples

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.