From 8fbc3885885c2122f5310bcb4b8729387cb82c4b Mon Sep 17 00:00:00 2001 From: Gimel Dick Date: Fri, 31 Oct 2025 07:26:51 -0400 Subject: [PATCH 1/2] allow filtering interactions analytics by channel --- .../analytics/get_interactions_by_date.jac | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/core/jivas/agent/analytics/get_interactions_by_date.jac b/core/jivas/agent/analytics/get_interactions_by_date.jac index d650cfb..560ce77 100644 --- a/core/jivas/agent/analytics/get_interactions_by_date.jac +++ b/core/jivas/agent/analytics/get_interactions_by_date.jac @@ -12,6 +12,7 @@ walker get_interactions_by_date(agent_graph_walker) { has start_date: str = ""; has end_date: str = ""; has timezone: str = "UTC"; + has channel: str = ""; # set up logger static has logger:Logger = logging.getLogger(__name__); @@ -32,18 +33,21 @@ walker get_interactions_by_date(agent_graph_walker) { try { collection = NodeAnchor.Collection.get_collection("interactions"); + match_query = { + "agent_id": self.agent_id, + "time_stamp": { + "$gte": start.isoformat(), + "$lte": end.isoformat() + } + }; + + if (self.channel) { + match_query["channel"] = self.channel; + } pipeline = [ # Match documents for the agent within date range - { - "$match": { - "agent_id": self.agent_id, - "time_stamp": { - "$gte": start.isoformat(), - "$lte": end.isoformat() - } - } - }, + {"$match": match_query}, # Convert string timestamp to date object and group by local date { "$group": { From bfa319587bdfc2031fe69e0cf62b2dc399d3a8d5 Mon Sep 17 00:00:00 2001 From: Gimel Dick Date: Fri, 31 Oct 2025 07:31:28 -0400 Subject: [PATCH 2/2] bump version --- __init__.py | 2 +- jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/README.md | 0 .../templates/{2.1.21 => 2.1.22}/project/actions/README.md | 0 jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/daf/README.md | 0 jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/env.example | 0 .../templates/{2.1.21 => 2.1.22}/project/gitignore.example | 0 jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/globals.jac | 0 jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/main.jac | 0 .../jvcli/templates/{2.1.21 => 2.1.22}/project/tests/README.md | 0 .../jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/CHANGELOG.md | 0 jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/README.md | 0 .../templates/{2.1.21 => 2.1.22}/sourcefiles/action_app.py | 0 .../{2.1.21 => 2.1.22}/sourcefiles/action_archetype.jac | 0 .../templates/{2.1.21 => 2.1.22}/sourcefiles/action_info.yaml | 0 .../templates/{2.1.21 => 2.1.22}/sourcefiles/action_lib.jac | 0 .../{2.1.21 => 2.1.22}/sourcefiles/agent_descriptor.yaml | 0 .../templates/{2.1.21 => 2.1.22}/sourcefiles/agent_info.yaml | 0 .../{2.1.21 => 2.1.22}/sourcefiles/agent_knowledge.yaml | 0 .../templates/{2.1.21 => 2.1.22}/sourcefiles/agent_memory.yaml | 0 .../sourcefiles/interact_action_archetype.jac | 0 20 files changed, 1 insertion(+), 1 deletion(-) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/README.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/actions/README.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/daf/README.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/env.example (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/gitignore.example (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/globals.jac (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/main.jac (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/project/tests/README.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/CHANGELOG.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/README.md (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/action_app.py (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/action_archetype.jac (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/action_info.yaml (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/action_lib.jac (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/agent_descriptor.yaml (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/agent_info.yaml (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/agent_knowledge.yaml (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/agent_memory.yaml (100%) rename jvcli/jvcli/templates/{2.1.21 => 2.1.22}/sourcefiles/interact_action_archetype.jac (100%) diff --git a/__init__.py b/__init__.py index 4c05755..3727c67 100644 --- a/__init__.py +++ b/__init__.py @@ -4,4 +4,4 @@ JIVAS is an Agentic Framework for rapidly prototyping and deploying graph-based, AI solutions. """ -__version__ = "2.1.21" +__version__ = "2.1.22" diff --git a/jvcli/jvcli/templates/2.1.21/project/README.md b/jvcli/jvcli/templates/2.1.22/project/README.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/README.md rename to jvcli/jvcli/templates/2.1.22/project/README.md diff --git a/jvcli/jvcli/templates/2.1.21/project/actions/README.md b/jvcli/jvcli/templates/2.1.22/project/actions/README.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/actions/README.md rename to jvcli/jvcli/templates/2.1.22/project/actions/README.md diff --git a/jvcli/jvcli/templates/2.1.21/project/daf/README.md b/jvcli/jvcli/templates/2.1.22/project/daf/README.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/daf/README.md rename to jvcli/jvcli/templates/2.1.22/project/daf/README.md diff --git a/jvcli/jvcli/templates/2.1.21/project/env.example b/jvcli/jvcli/templates/2.1.22/project/env.example similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/env.example rename to jvcli/jvcli/templates/2.1.22/project/env.example diff --git a/jvcli/jvcli/templates/2.1.21/project/gitignore.example b/jvcli/jvcli/templates/2.1.22/project/gitignore.example similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/gitignore.example rename to jvcli/jvcli/templates/2.1.22/project/gitignore.example diff --git a/jvcli/jvcli/templates/2.1.21/project/globals.jac b/jvcli/jvcli/templates/2.1.22/project/globals.jac similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/globals.jac rename to jvcli/jvcli/templates/2.1.22/project/globals.jac diff --git a/jvcli/jvcli/templates/2.1.21/project/main.jac b/jvcli/jvcli/templates/2.1.22/project/main.jac similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/main.jac rename to jvcli/jvcli/templates/2.1.22/project/main.jac diff --git a/jvcli/jvcli/templates/2.1.21/project/tests/README.md b/jvcli/jvcli/templates/2.1.22/project/tests/README.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/project/tests/README.md rename to jvcli/jvcli/templates/2.1.22/project/tests/README.md diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/CHANGELOG.md b/jvcli/jvcli/templates/2.1.22/sourcefiles/CHANGELOG.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/CHANGELOG.md rename to jvcli/jvcli/templates/2.1.22/sourcefiles/CHANGELOG.md diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/README.md b/jvcli/jvcli/templates/2.1.22/sourcefiles/README.md similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/README.md rename to jvcli/jvcli/templates/2.1.22/sourcefiles/README.md diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/action_app.py b/jvcli/jvcli/templates/2.1.22/sourcefiles/action_app.py similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/action_app.py rename to jvcli/jvcli/templates/2.1.22/sourcefiles/action_app.py diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/action_archetype.jac b/jvcli/jvcli/templates/2.1.22/sourcefiles/action_archetype.jac similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/action_archetype.jac rename to jvcli/jvcli/templates/2.1.22/sourcefiles/action_archetype.jac diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/action_info.yaml b/jvcli/jvcli/templates/2.1.22/sourcefiles/action_info.yaml similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/action_info.yaml rename to jvcli/jvcli/templates/2.1.22/sourcefiles/action_info.yaml diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/action_lib.jac b/jvcli/jvcli/templates/2.1.22/sourcefiles/action_lib.jac similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/action_lib.jac rename to jvcli/jvcli/templates/2.1.22/sourcefiles/action_lib.jac diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/agent_descriptor.yaml b/jvcli/jvcli/templates/2.1.22/sourcefiles/agent_descriptor.yaml similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/agent_descriptor.yaml rename to jvcli/jvcli/templates/2.1.22/sourcefiles/agent_descriptor.yaml diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/agent_info.yaml b/jvcli/jvcli/templates/2.1.22/sourcefiles/agent_info.yaml similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/agent_info.yaml rename to jvcli/jvcli/templates/2.1.22/sourcefiles/agent_info.yaml diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/agent_knowledge.yaml b/jvcli/jvcli/templates/2.1.22/sourcefiles/agent_knowledge.yaml similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/agent_knowledge.yaml rename to jvcli/jvcli/templates/2.1.22/sourcefiles/agent_knowledge.yaml diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/agent_memory.yaml b/jvcli/jvcli/templates/2.1.22/sourcefiles/agent_memory.yaml similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/agent_memory.yaml rename to jvcli/jvcli/templates/2.1.22/sourcefiles/agent_memory.yaml diff --git a/jvcli/jvcli/templates/2.1.21/sourcefiles/interact_action_archetype.jac b/jvcli/jvcli/templates/2.1.22/sourcefiles/interact_action_archetype.jac similarity index 100% rename from jvcli/jvcli/templates/2.1.21/sourcefiles/interact_action_archetype.jac rename to jvcli/jvcli/templates/2.1.22/sourcefiles/interact_action_archetype.jac