Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activate time travel #351

Merged
merged 8 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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"
Loading