Skip to content

Fix mcp delete_all_memories reporting Datatype error #2698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

heng-ah
Copy link
Contributor

@heng-ah heng-ah commented May 16, 2025

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)
[- fix UUID & string datatype issue when mcp delete_all_memories]

error reporting as below:
[Error deleting memories: 2 validation errors for PointRequest
ids.0.int
  Input should be a valid integer [type=int_type, input_value=UUID('be165f35-9d2c-4ca0-a562-3c620ad8e5b3'), input_type=UUID]
    For further information visit https://errors.pydantic.dev/2.11/v/int_type
ids.0.str
  Input should be a valid string [type=string_type, input_value=UUID('be165f35-9d2c-4ca0-a562-3c620ad8e5b3'), input_type=UUID]
    For further information visit https://errors.pydantic.dev/2.11/v/string_type]

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Please delete options that are not relevant.

  • Unit Test

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

heng-ah added 2 commits May 16, 2025 03:27
error reporting as below:
[Error deleting memories: 2 validation errors for PointRequest
ids.0.int
  Input should be a valid integer [type=int_type, input_value=UUID('be165f35-9d2c-4ca0-a562-3c620ad8e5b3'), input_type=UUID]
    For further information visit https://errors.pydantic.dev/2.11/v/int_type
ids.0.str
  Input should be a valid string [type=string_type, input_value=UUID('be165f35-9d2c-4ca0-a562-3c620ad8e5b3'), input_type=UUID]
    For further information visit https://errors.pydantic.dev/2.11/v/string_type]
@whysosaket
Copy link
Collaborator

Hey @heng-ah, could you please resolve the merge conflicts please?

@heng-ah
Copy link
Contributor Author

heng-ah commented May 21, 2025

this error still occur on latest release, team please check if this PR fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants