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.21"
__version__ = "2.1.22"
22 changes: 13 additions & 9 deletions core/jivas/agent/analytics/get_interactions_by_date.jac
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand All @@ -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": {
Expand Down