Skip to content

fix(plugmem): support initial observation in trajectory API#10

Open
taodeng009 wants to merge 9 commits into
TIMAN-group:mainfrom
taodeng009:plugmem-api-repair
Open

fix(plugmem): support initial observation in trajectory API#10
taodeng009 wants to merge 9 commits into
TIMAN-group:mainfrom
taodeng009:plugmem-api-repair

Conversation

@taodeng009
Copy link
Copy Markdown

Summary

  • Add optional initial_observation to trajectory memory insert requests
  • Use initial_observation as the initial Memory observation when provided
  • Preserve legacy payload behavior by falling back to the first step observation
  • Add tests for new payloads, legacy payloads, and empty steps validation

Tests

  • py -m py_compile plugmem/api/schemas.py plugmem/api/routes/memories.py tests/test_api_memories.py
  • Not run: pytest tests/test_api_memories.py because local Python environment does not have pytest installed

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.

1 participant