Skip to content

Commit abf4aee

Browse files
author
Ro-ee Tal
committed
feat: implemented pruning/mapping conversation manager
1 parent 73865d3 commit abf4aee

File tree

5 files changed

+879
-1
lines changed

5 files changed

+879
-1
lines changed

src/strands/experimental/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@
66
from . import tools
77
from .agent_config import config_to_agent
88

9-
__all__ = ["config_to_agent", "tools"]
9+
10+
# Lazy import to avoid circular dependency
11+
def __getattr__(name: str) -> object:
12+
if name == "conversation_manager":
13+
from . import conversation_manager
14+
15+
return conversation_manager
16+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
17+
18+
19+
__all__ = ["config_to_agent", "tools", "conversation_manager"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""Experimental conversation management strategies.
2+
3+
This module implements experimental conversation managers that are subject to change.
4+
"""
5+
6+
from .mapping_conversation_manager import (
7+
LargeToolResultMapper,
8+
MappingConversationManager,
9+
MessageMapper,
10+
)
11+
12+
__all__ = [
13+
"MappingConversationManager",
14+
"MessageMapper",
15+
"LargeToolResultMapper",
16+
]

0 commit comments

Comments
 (0)