Issue run example weather agent and get error

Hi I know it's maybe a really easy one, but I just follow the steps for beginner that set up the Mastra and run it locally I got error in the agent that says something like:
message":"Item with id 'fc_05248b2bff4ea6be016930c92c9b8c81a0928427289630a8c9' not found. Items are not persisted for Zero Data Retention organizations. Remove this item from your input and try again.","name":"AI_APICallError","stack":"AI_APICallError: Item with id 'fc_05248b2bff4ea6be016930c92c9b8c81a0928427289630a8c9' not found. Items are not persisted for Zero Data Retention organizations. Remove this item from your input and try again.
message":"Item with id 'fc_05248b2bff4ea6be016930c92c9b8c81a0928427289630a8c9' not found. Items are not persisted for Zero Data Retention organizations. Remove this item from your input and try again.","name":"AI_APICallError","stack":"AI_APICallError: Item with id 'fc_05248b2bff4ea6be016930c92c9b8c81a0928427289630a8c9' not found. Items are not persisted for Zero Data Retention organizations. Remove this item from your input and try again.
the work flow calls the api correctly but can not run in the agent, I tested in the work flow, it works fine. any helps are welcome. Thank you!
No description
No description
No description
5 Replies
Mastra Triager
Mastra Triagerβ€’3d ago
πŸ“ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10860 πŸ” If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly. πŸ™ Thank you for helping us improve Mastra!
Abhi Aiyer
Abhi Aiyerβ€’3d ago
When talking to the agent directly you get an error but not in workflows?
_roamin_
_roamin_β€’3d ago
Hey @θΆ…ε“₯123 ! It looks the "zero data retention" setting you have setup on your OpenAI org isn't playing well with our default memory setting. Could you try adding this provider option to the agent's config?
export const weatherAgent = new Agent({
name: 'Weather Agent',
// ...
defaultVNextStreamOptions: {
providerOptions: {
openai: {
store: false,
},
}
}
});
export const weatherAgent = new Agent({
name: 'Weather Agent',
// ...
defaultVNextStreamOptions: {
providerOptions: {
openai: {
store: false,
},
}
}
});
If you're using v1, it should be defaultOptions instead of defaultVNextStreamOptions
Abhi Aiyer
Abhi Aiyerβ€’3d ago
Small correction should be defaultStreamVNextOptions if not using v1
θΆ…ε“₯123
θΆ…ε“₯123OPβ€’3d ago
thank you so much!! it works!! yes, it calls opan AI api and get the respond back correctly. something seems wrong for the memory setting

Did you find this page helpful?