Skip to content

feat: add memory tool#10637

Merged
jif-oai merged 11 commits intomainfrom
jif/memory-too
Feb 5, 2026
Merged

feat: add memory tool#10637
jif-oai merged 11 commits intomainfrom
jif/memory-too

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Feb 4, 2026

Add a tool for memory to retrieve a full memory based on the memory ID

Base automatically changed from jif/memory-db to main February 4, 2026 21:38
@jif-oai
Copy link
Collaborator Author

jif-oai commented Feb 5, 2026

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03da94aa77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1338 to +1340
if config.memory_tools {
builder.push_spec(create_get_memory_tool());
builder.register_handler("get_memory", get_memory_handler);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate get_memory on Sqlite or return explicit error

When memory_tools is enabled, the tool is always registered, but it relies on the SQLite state DB. If Feature::Sqlite is off (the default), session.state_db() is None and state_db::get_thread_memory(...) returns None, so the handler reports “memory not found” even though storage is disabled. This makes the tool unusable and misleading unless callers also enable Sqlite. Consider gating registration on Feature::Sqlite (or emitting a clear error when the DB is unavailable) so users don’t see false “not found” failures in that configuration.

Useful? React with 👍 / 👎.

@jif-oai jif-oai merged commit 41f3b1b into main Feb 5, 2026
32 checks passed
@jif-oai jif-oai deleted the jif/memory-too branch February 5, 2026 16:16
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants