Skip to content

feat(agent-evolution): add trajectory date filters - #3915

Merged
qin-ctx merged 2 commits into
volcengine:mainfrom
heaoxiang-ai:feat/experience-trajectory-time-filter
Aug 10, 2026
Merged

qin-ctx merged 2 commits into
volcengine:mainfrom
heaoxiang-ai:feat/experience-trajectory-time-filter

Conversation

@heaoxiang-ai

Copy link
Copy Markdown
Collaborator

Description

Add optional UTC day-level time filtering to the Agent Evolution trajectory list and outcome distribution APIs. Callers can constrain application trajectories by creation date without changing existing behavior when no date range is provided.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • Add optional start_date and end_date query parameters to the Experience trajectory list and outcome distribution endpoints.
  • Filter trajectories by created_at using UTC YYYY-MM-DD natural-day boundaries; both bounds are inclusive and may be provided independently.
  • Reuse a shared Experience/Trajectory filter builder for pagination and outcome aggregation.
  • Validate malformed or reversed date ranges while preserving existing behavior for requests without date filters.
  • Document the new parameters in the English and Chinese Agent Evolution API references.

Testing

  • 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
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Verification performed:

  • pytest -q tests/service/test_agent_evolution_service.py: 9 passed.
  • ruff format and ruff check passed for all changed Python files.
  • git diff --check passed.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my 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
  • Any dependent changes have been merged and published

Screenshots (if applicable)

N/A

Additional Notes

  • The time filter applies to Trajectory created_at; trajectories are add-only, so this represents their generation date.
  • end_date is implemented as an exclusive upper bound at the start of the following UTC day, preserving an inclusive public API contract.
  • Local HTTP router integration tests could not initialize because the local wheel does not include the native PersistStore backend. The failure occurs during test service startup before these routes execute.
  • A companion Serverless change that exposes StartDate and EndDate has been pushed separately to feat/openviking-experience-time-filter.

@qin-ctx
qin-ctx merged commit a779c62 into volcengine:main Aug 10, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Aug 10, 2026
frankyang2008-eng added a commit to frankyang2008-eng/OpenViking that referenced this pull request Oct 9, 2026
Sync upstream main (e546b79) - 19 commits, 315 files:

- refactor(client): remove Python embedded mode (volcengine#3712)
- perf(queue): stream semantic vectorization tasks (volcengine#3636)
- perf(queuefs): defer embedding content materialization (volcengine#3871)
- feat(memory): support event tag filtering (volcengine#3850)
- feat(pathlock): keep lease alive across handoff (volcengine#3903)
- feat(server): refresh read-replica API key index via store watcher (volcengine#3857)
- feat(agent-evolution): add trajectory date filters (volcengine#3915)
- feat(agent-evolution): add trajectory task query (volcengine#3856)
- feat(web-studio): add account deletion workflow (volcengine#3912)
- feat(web-studio): add scheduled resource sync management (volcengine#3909)
- fix(watch): avoid global lock during resource moves (volcengine#3833)
- fix(observer): ignore historical lock diagnostics in health (volcengine#3920)
- fix(session): validate archive names when loading history (volcengine#3922)
- fix(task-tracker): delete expired persisted tasks (volcengine#3913)
- fix(storage): exclude zero-byte files from index expectations (volcengine#3904)
- fix(semantic): reduce entity hallucinations in summaries (volcengine#3908)
- fix(retrieval): record first-turn session recalls (volcengine#3907)
- fix(opencode-plugin): serialize saveState to prevent ENOENT race (volcengine#3885)
- fix(examples): align quick start with server mode (volcengine#3923)

Reviewed: zero conflicts, all local dev-branch modifications preserved,
no references to deleted embedded client modules, config backward-compatible.
frankyang2008-eng pushed a commit to frankyang2008-eng/OpenViking that referenced this pull request Oct 9, 2026
* feat(agent-evolution): add trajectory date filters

* refactor(agent-evolution): simplify date validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants