Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
JIVAS is an Agentic Framework for rapidly prototyping and deploying graph-based, AI solutions.
"""

__version__ = "2.1.20"
__version__ = "2.1.21"
4 changes: 4 additions & 0 deletions core/jivas/agent/action/interact.jac
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,13 @@ walker interact(agent_graph_walker) {
visit queued_actions;
}

self.logger.info(f"Utterance: {self.utterance}");

}

can on_action with InteractAction entry {
# performs execute routine for action nodes
self.logger.info(f"Touch: {here.label}");

if not self.is_intended(here) {
return;
Expand All @@ -123,6 +126,7 @@ walker interact(agent_graph_walker) {
}

if here.touch(self) {
self.logger.info(f"Execute: {here.label}");
# execute the action
here.execute(self);
self.interaction_node.trail.append(here.label);
Expand Down
21 changes: 20 additions & 1 deletion core/jivas/agent/action/retrieval_interact_action.jac
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ node RetrievalInteractAction(InteractAction) {
has model_name:str = "gpt-4o";
has model_temperature:float = 0.2;
has model_max_tokens:int = 10000;
has cache_interact_action:str = "CacheInteractAction";

def on_register() {

Expand All @@ -87,6 +88,19 @@ node RetrievalInteractAction(InteractAction) {

def execute(visitor: agent_graph_walker) {

content_filter="";
if cache_interact_action := self.get_agent().get_action(action_label=self.cache_interact_action) {
cached_result = cache_interact_action.get_cached_response(visitor);
if cached_result.get("message") {
visitor.interaction_node.set_message(cached_result["message"]);
return;
}

if cache_interact_action.can_use_cache_filter() {
content_filter = "metadata.document_type:!=cache_response";
}
}

# first prepare the query with context completion
# prepare query using conversation history or fallback to original utterance
query = self.process_query(visitor);
Expand All @@ -109,7 +123,7 @@ node RetrievalInteractAction(InteractAction) {
interaction_context['query'] = query.get("query", visitor);

# handle context, if any and queue directive
if(context_data := self.retrieve_context(interaction_context['query'])) {
if(context_data := self.retrieve_context(query = interaction_context['query'], filter=content_filter)) {

context_directive = None;
# add raw context to the interaction node
Expand Down Expand Up @@ -159,6 +173,11 @@ node RetrievalInteractAction(InteractAction) {
query = model_action_result.get_json_result();
}
}
} else {
query = {
"query": visitor.utterance,
"is_query": True
};
}

return query;
Expand Down
20 changes: 17 additions & 3 deletions core/jivas/agent/memory/collection.jac
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import from jivas.agent.core.graph_node { GraphNode }
import from jac_cloud.plugin.jaseci { JacPlugin as Jac }
import from jac_cloud.core.archetype { NodeAnchor }


node Collection(GraphNode) {
# represents a named collection for long-term memory storage
Expand Down Expand Up @@ -38,8 +40,20 @@ walker _purge_collection {
}

can on_collection_node with GraphNode entry {
visit [-->];
self.removed.append(here);
Jac.destroy(here);
try {
visit [-->];
self.removed.append(here);
Jac.destroy(here);
} except Exception as e {
node_id = re.search(r'\[(.*?)\]', str(e)).group(1);
filter_query = {"$and": [{"name": "Frame"}, {"archetype.id": node_id}]};

if (cursor := NodeAnchor.Collection.find(filter_query)) {
nodes = [n.archetype for n in cursor];
for node_obj in nodes {
Jac.destroy(node_obj);
}
}
}
}
}
34 changes: 19 additions & 15 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,25 @@ def get_version() -> str:
package_data={"jivas": []},
python_requires=">=3.12.0",
install_requires=[
"jvcli>=2.1.0",
"jvclient>=0.0.2",
"jvserve>=2.1.0",
"pytz>=2024.2",
"types-pytz>=2024.2.0.20241003",
"schedule>=1.2.2",
"openai>=1.68.2",
"langchain>=0.3.21",
"langchain-community>=0.3.20",
"langchain-core>=0.3.47",
"langchain-experimental>=0.3.4",
"langchain-openai>=0.3.9",
"setuptools>=75.8.1",
"transformers>=4.49.0",
"ftfy>=6.2.3",
"jvcli<=2.1.20",
"jvclient<=2.1.20",
"jvserve<=2.1.20",
"jac-cloud==0.2.7",
"jaclang==0.8.7",
"pytz==2025.2",
"types-pytz==2025.2.0.20250809",
"schedule==1.2.2",
"openai==1.109.1",
"langchain==0.3.27",
"langchain-community==0.3.27",
"langchain-core==0.3.79",
"langchain-experimental==0.3.4",
"langchain-openai==0.3.19",
"langchain-text-splitters==0.3.11",
"langsmith==0.4.38",
"setuptools==80.9.0",
"transformers==4.57.1",
"ftfy==6.3.1",
],
extras_require={
"dev": [
Expand Down
20 changes: 10 additions & 10 deletions jvcli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ def get_version() -> str:
),
include_package_data=True,
install_requires=[
"click>=8.1.8",
"requests>=2.32.3",
"packaging>=24.2",
"pyaml>=25.1.0",
"python-dotenv>=1.0.0",
"semver>=3.0.4",
"click==8.3.0",
"requests==2.32.5",
"packaging==25.0",
"pyaml==25.7.0",
"python-dotenv==1.2.1",
"semver==3.0.4",
"node-semver>=0.9.0",
"jaclang",
"pymongo",
"uvicorn",
"fastapi",
"jaclang==0.8.7",
"pymongo==4.11.3",
"uvicorn==0.34.0",
"fastapi==0.115.11",
],
extras_require={
"dev": [
Expand Down
13 changes: 7 additions & 6 deletions jvserve/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ def get_version() -> str:
package_data={"jvserve": []},
python_requires=">=3.12.0",
install_requires=[
"jac-cloud>=0.2.5",
"jac-cloud==0.2.7",
"jaclang==0.8.7",
"psutil>=7.0.0",
"pyaml>=25.1.0",
"requests>=2.32.3",
"aiohttp>=3.10.10",
"schedule>=1.2.2",
"boto3>=1.37.10",
"pyaml==25.7.0",
"requests==2.32.5",
"aiohttp==3.13.1",
"schedule==1.2.2",
"boto3==1.40.59",
],
extras_require={
"dev": [
Expand Down