Skip to content

[Docs]: Python SDK example does not work #973

Closed as not planned
Closed as not planned

Description

@leomem

Documentation Page URL

https://docs.memmachine.ai/api_reference/python/client

Describe the issue

Initializing Project...
Connected to Project: acme-corp/support-bot-v1
Adding memories...

Searching for context...
Query: What should I suggest for dinner?
Results found:
Traceback (most recent call last):
File "/home/abc/memtest/hello1.py", line 59, in
main()
File "/home/abc/memtest/hello1.py", line 55, in main
for idx, item in enumerate(results.get('episodic_memory', [])):
^^^^^^^^^^^
File "/home/abc/memtest/.venv/lib/python3.12/site-packages/pydantic/main.py", line 1026, in getattr
raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
AttributeError: 'SearchResult' object has no attribute 'get'

Suggested change or fix

No response

Additional context

No response

Activity

  1. malatewang commented on Jan 26, 2026

    @malatewang
    Contributor

    You should use result.content.get(). The result has two fields: status and content. Content is a dictionary that suppot the "get" function call.

  2. jealous commented on Jan 26, 2026

    @jealous
    Contributor

    Assign to @tianAndrew , we may need to update the documents.

  3. SarahScargall commented on Jan 27, 2026

    @SarahScargall
    Contributor

    Assigning myself as a co-owner, as this will require documentation updates.

  4. SarahScargall commented on Mar 11, 2026

    @SarahScargall
    Contributor

    @tianAndrew - Hi! Any updates on the new Python SDK Example Script?

  5. github-actions commented on May 11, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment to keep it open, or add the keep-open label if it should remain open indefinitely (e.g., a roadmap item awaiting a champion). Thank you for your contributions.

  6. github-actions commented on May 25, 2026

    @github-actions
    Contributor

    This issue was automatically closed due to inactivity. If it is still relevant, please reopen it or file a new issue referencing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions