Skip to content

Commit

Permalink
activate time travel
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Aug 13, 2024
1 parent 7143320 commit f56c457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions agentops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .helpers import check_agentops_update
from .log_config import logger
from .session import Session
from .cli import cli
import threading

try:
Expand Down
6 changes: 1 addition & 5 deletions agentops/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .time_travel import fetch_time_travel_id, set_time_travel_active_state


def main():
def cli():
parser = argparse.ArgumentParser(description="AgentOps CLI")
subparsers = parser.add_subparsers(dest="command")

Expand Down Expand Up @@ -35,7 +35,3 @@ def main():
set_time_travel_active_state("on")
if args.off:
set_time_travel_active_state("off")


if __name__ == "__main__":
main()
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ Issues = "https://github.com/AgentOps-AI/agentops/issues"

[tool.autopep8]
max_line_length = 120

[project.scripts]
agentops = "agentops:cli"

0 comments on commit f56c457

Please sign in to comment.