refactor(memory): tighten metadata field types and clean up descriptions
- Use Literal['set', 'remove'] for MetadataFieldChange.action instead of str - Simplify field_path description to reflect current schema - Remove redundant isinstance check in extract_user_metadata_task
This commit is contained in:
@@ -3157,8 +3157,6 @@ def extract_user_metadata_task(
|
||||
leaf = parts[-1]
|
||||
|
||||
current_list = target.get(leaf, [])
|
||||
if not isinstance(current_list, list):
|
||||
current_list = []
|
||||
|
||||
if action == "set":
|
||||
if value not in current_list:
|
||||
|
||||
Reference in New Issue
Block a user