Skip to content
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

feat: add short memory to agent #183

Merged
merged 8 commits into from
Nov 5, 2023
Merged

feat: add short memory to agent #183

merged 8 commits into from
Nov 5, 2023

Conversation

imotai
Copy link
Contributor

@imotai imotai commented Oct 31, 2023

PR-Codex overview

This PR focuses on adding a new feature to the agent SDK for creating and managing sessions. It also includes updates to the memory module and tests.

Detailed summary

  • Added AgentSyncSession and AgentAsyncSession classes to the agent SDK for session management.
  • Modified the prompt method in AgentBaseSDK to accept a context_id parameter for session-based prompts.
  • Updated the agent_memory_to_context function in the memory module to handle new prompt parameters.
  • Added new tests for the updated functionality.

The following files were skipped due to too many changes: memory/src/og_memory/memory.py, chat/src/og_terminal/terminal_chat.py, agent/tests/openai_agent_tests.py, agent/src/og_agent/prompt.py, agent/src/og_agent/llama_agent.py, agent/src/og_agent/openai_agent.py, agent/src/og_agent/base_agent.py

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@imotai imotai linked an issue Oct 31, 2023 that may be closed by this pull request
@imotai imotai changed the title feat: add memory to agent feat: add short memory to agent Nov 4, 2023
@imotai imotai merged commit c160d91 into main Nov 5, 2023
4 checks passed
@imotai imotai deleted the 181-add-memory-to-the-agent branch November 5, 2023 09:20
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.

Add short memory to the agent
1 participant