Skip to content

Dev#104

Merged
csmangum merged 3 commits intomainfrom
dev
May 8, 2025
Merged

Dev#104
csmangum merged 3 commits intomainfrom
dev

Conversation

@csmangum
Copy link
Contributor

@csmangum csmangum commented May 8, 2025

This pull request introduces several enhancements and fixes across the memory/search/strategies/sequence.py, scripts/agent_conversation.py, and validation/search/sequence/sequence_test_suite.py files. Key changes include improving memory filtering and timestamp handling, adding a new script for agent conversations with text-to-speech functionality, and updating test parameters for advanced sequence tests.

Enhancements to memory search functionality:

New script for agent conversations:

  • Introduced scripts/agent_conversation.py, which simulates a conversation between two agents (Abraham Lincoln and Emperor Nero) with text-to-speech functionality using OpenAI's TTS API. The script includes retry logic for agent responses and audio playback for generated speech. (scripts/agent_conversation.py, scripts/agent_conversation.pyR1-R113)

Updates to test suite:

csmangum added 2 commits May 7, 2025 17:37
…tiveSequenceStrategy with memory type filtering and new memory ID extraction method; introduce agent_conversation script for TTS interactions between Lincoln and Nero.
…d timestamp handling

This update modifies the `NarrativeSequenceStrategy` class to handle both string and numeric formats for memory content and reference timestamps. It introduces checks for content types when filtering memories by type and refines timestamp comparisons for better accuracy. Additionally, the test suite is updated to reflect a new time window of 24 hours and includes a new sequence size parameter for validation.
@csmangum csmangum requested a review from Copilot May 8, 2025 00:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces enhancements to memory search by filtering memories based on metadata and improving timestamp comparisons, adds a new agent conversation script with text-to-speech integration, and updates test parameters for advanced sequence tests.

  • Enhanced filtering and timestamp handling in memory search
  • New script for simulating agent conversations with retry logic and audio playback
  • Updated test suite parameters including extended time windows and a new sequence size test

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
validation/search/sequence/sequence_test_suite.py Updated test parameters for time window and sequence size
scripts/agent_conversation.py Added a new script for agent conversations with text-to-speech functionality
memory/search/strategies/sequence.py Improved memory filtering by type, updated timestamp comparisons, and added a helper for memory ID extraction

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@csmangum csmangum merged commit 4a468b3 into main May 8, 2025
1 check failed
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