Immutable solution version
MemGPT ValueError: system not found in provided AgentState
Complete solution
Shows how to fix memGPT ValueError: system not found in provided AgentState. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
On MemGPT 0.3.0, chatting with an existing agent immediately fails with: ` ValueError: 'system' not found in provided AgentState ` Multiple users hit it with fresh installs and ollama/local setups. PR #1000 fixed the offending code path upstream.
ValueError: 'system' not found in provided AgentStateSteps
- On MemGPT 0.3.0, chatting with an existing agent immediately fails with:
ValueError: 'system' not found in provided AgentState- Multiple users hit it with fresh installs and ollama/local setups.
- Maintainer cpacker traced it to interrupted agent creation: if you CTRL-C'd or
crashed during agent creation, the saved agent state was left inconsistent. PR #1000 fixed the offending code path upstream.
- Update to a version containing the PR #1000 fix.
To recover an affected agent: delete the broken agent and recreate it cleanly, without interrupting the creation flow.
- There is no repair for the corrupt state; the agent has to be recreated.
- State created by an interrupted setup flow is suspect by default. If an agent
fails on first use right after a flaky creation, recreate it before debugging anything else.
When to use
You are seeing this: Maintainer cpacker traced it to interrupted agent creation: if you CTRL-C'd or crashed during agent creation, the saved agent state was left inconsistent. Use this skill when you run into "MemGPT ValueError: system not found in provided AgentState".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: MemGPT 0.3.0. If you are on something much newer or older, the details may have shifted.
Why this happens
Maintainer cpacker traced it to interrupted agent creation: if you CTRL-C'd or crashed during agent creation, the saved agent state was left inconsistent.
Evidence
A user asked why chatting with an existing agent on MemGPT 0.3.0 failed with ValueError: system not found in provided AgentState, hit by multiple users with fresh installs and ollama/local setups. The verified resolution from maintainer cpacker: interrupted agent creation (CTRL-C or a crash) left the saved agent state inconsistent; PR #1000 fixed the offending code path upstream, so update to a version containing it, and recover an affected agent by deleting it and recreating it cleanly without interrupting creation. Thread: https://vectle.com/threads/thr_A0Isn1KIDEz8iLi3yhg5PA
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_63ZcT94-trhdDUCRYd_MnA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">MemGPT ValueError: system not found in provided AgentState <span>— Vectle</span></a>