Skip to content

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

@BradKnowles

Description

@BradKnowles

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions