Skip to content

Commit

Permalink
Merge branch 'main' into mistral-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs authored Oct 4, 2024
2 parents 23744e6 + 142e50b commit aa663c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
13 changes: 7 additions & 6 deletions agentops/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ def format_duration(start_time, end_time):
token_cost_d.quantize(Decimal("0.000001"), rounding=ROUND_HALF_UP)
)
)

analytics = (
f"Session stats - "
f"{colored('Cost:', attrs=['bold'])} ${formatted_cost} "
f"{colored('Duration:', attrs=['bold'])} {formatted_duration} "
f"{colored('LLMs:', attrs=['bold'])} {self.event_counts['llms']} "
f"{colored('Tools:', attrs=['bold'])} {self.event_counts['tools']} "
f"{colored('Actions:', attrs=['bold'])} {self.event_counts['actions']} "
f"Session Stats - "
f"{colored('Duration:', attrs=['bold'])} {formatted_duration} | "
f"{colored('Cost:', attrs=['bold'])} ${formatted_cost} | "
f"{colored('LLMs:', attrs=['bold'])} {self.event_counts['llms']} | "
f"{colored('Tools:', attrs=['bold'])} {self.event_counts['tools']} | "
f"{colored('Actions:', attrs=['bold'])} {self.event_counts['actions']} | "
f"{colored('Errors:', attrs=['bold'])} {self.event_counts['errors']}"
)
logger.info(analytics)
Expand Down
5 changes: 5 additions & 0 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"icon": "lines-leaning"
},
"anchors": [
{
"name": "Chat With Docs",
"icon": "user-doctor-message",
"url": "https://chatgpt.com/g/g-8wCVRuAsm-agentops-assistant"
},
{
"name": "Your Dashboard",
"icon": "chart-tree-map",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "agentops"
version = "0.3.12"
version = "0.3.13"
authors = [
{ name="Alex Reibman", email="areibman@gmail.com" },
{ name="Shawn Qiu", email="siyangqiu@gmail.com" },
Expand All @@ -20,11 +20,11 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"requests==2.31.0",
"requests>=2.0.0,<3.0.0",
"psutil==5.9.8",
"packaging==23.2",
"termcolor==2.4.0",
"PyYAML==6.0.1"
"PyYAML>=5.3,<7.0"
]
[project.optional-dependencies]
dev = [
Expand Down

0 comments on commit aa663c7

Please sign in to comment.