Skip to content

Support for chat context#8

Merged
pmenendz merged 2 commits intomainfrom
include-history
Jul 11, 2025
Merged

Support for chat context#8
pmenendz merged 2 commits intomainfrom
include-history

Conversation

@pmenendz
Copy link
Copy Markdown
Collaborator

  • Support chat context
  • Allow checkpointer None

@pmenendz pmenendz requested a review from Copilot July 11, 2025 13:37
Copy link
Copy Markdown
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

Adds support for passing chat context messages to the agent and makes the checkpointing mechanism configurable (including allowing no checkpointer).

  • Introduce checkpointer property in Config to select or disable a saver
  • Remove hardcoded in-memory saver in the agent and wire through the config
  • Add get_response_with_context to reuse streaming logic with arbitrary message history

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/expert/config.py Add checkpointer property to select/disable savers
src/expert/agent.py Remove hardcoded InMemorySaver, inject config checkpointer, add context-aware methods
Comments suppressed due to low confidence (1)

src/expert/config.py:108

  • New match-case branches for the checkpointer configuration ('memory' and None) are introduced but not covered by existing tests. Consider adding unit tests to verify each branch behaves as expected.
        match checkpointer:

Comment thread src/expert/config.py Outdated
Comment thread src/expert/agent.py
@pmenendz pmenendz merged commit 330474c into main Jul 11, 2025
4 checks passed
@pmenendz pmenendz deleted the include-history branch July 11, 2025 15:12
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