amrita_plugin_memory 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/PKG-INFO +1 -1
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/workflow.py +5 -10
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/PKG-INFO +1 -1
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/pyproject.toml +1 -1
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/LICENSE +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/README.md +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/__init__.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/config.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/embed.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/matchers.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/__init__.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/_state.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/backend.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/consts.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/hooks.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/nodes.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/runner.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/schemas.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/tools.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/tools.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/vector.py +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/SOURCES.txt +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/dependency_links.txt +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/requires.txt +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/top_level.txt +0 -0
- {amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/setup.cfg +0 -0
|
@@ -8,8 +8,7 @@ from amrita_core.components.react import (
|
|
|
8
8
|
REACT_COUNTER,
|
|
9
9
|
SINGLE_STRATEGY_CALL,
|
|
10
10
|
)
|
|
11
|
-
from
|
|
12
|
-
from amrita_sense import ALIAS, GOTO, NOP, WHILE, NodeCompose
|
|
11
|
+
from amrita_sense import WHILE, NodeCompose
|
|
13
12
|
|
|
14
13
|
from .nodes import LIMITING_MEMORY, STRATEGY_INIT
|
|
15
14
|
|
|
@@ -21,19 +20,15 @@ _workflow = None
|
|
|
21
20
|
def build_workflow():
|
|
22
21
|
global _workflow
|
|
23
22
|
if _workflow is None:
|
|
24
|
-
wf: NodeCompose = (
|
|
23
|
+
wf: NodeCompose = ( # A simple ReAct
|
|
25
24
|
LOAD_STATE
|
|
26
25
|
>> JINJA2_RENDER
|
|
27
26
|
>> LIMITING_MEMORY
|
|
28
27
|
>> BUILD_MESSAGE
|
|
29
28
|
>> STRATEGY_INIT
|
|
30
|
-
>>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
>> WHILE(_single_call).ACTION(REACT_COUNTER)
|
|
34
|
-
>> AGENT_POST_PROCESS
|
|
35
|
-
>> ALIAS(NOP, BuiltinName.STRATEGY_EOF)
|
|
36
|
-
)
|
|
29
|
+
>> AGENT_ENTRY
|
|
30
|
+
>> WHILE(_single_call).ACTION(REACT_COUNTER)
|
|
31
|
+
>> AGENT_POST_PROCESS
|
|
37
32
|
)
|
|
38
33
|
_workflow = wf.render()
|
|
39
34
|
return _workflow
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/_state.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/backend.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/consts.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/hooks.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/nodes.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/runner.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/schemas.py
RENAMED
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory/rethinking/tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{amrita_plugin_memory-0.2.3 → amrita_plugin_memory-0.2.4}/amrita_plugin_memory.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|