Skip to content

Commit d9d3900

Browse files
committed
fix manually
1 parent 3580781 commit d9d3900

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ environment = { python-version = "3.10" }
9696
unknown-argument = "ignore"
9797
invalid-parameter-default = "ignore"
9898
non-subscriptable = "ignore"
99-
possibly-unbound-attribute = "ignore"
10099
unresolved-attribute = "ignore"
101100
invalid-argument-type = "ignore"
102101
invalid-type-form = "ignore"
103102
invalid-assignment = "ignore"
103+
possibly-missing-attribute = "ignore"

scripts/checkpoint_operator.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ def list_checkpoints(
107107
logger.info("-" * 60)
108108

109109
for i, checkpoint in enumerate(checkpoints, 1):
110+
logger.debug(f"Checkpoint raw data: {checkpoint}")
110111
thread_id = checkpoint.config["configurable"].get("thread_id", "Unknown")
111-
checkpoint_id = checkpoint.config.get("checkpoint_id", "Unknown")
112+
checkpoint_id = checkpoint.config["configurable"].get("checkpoint_id", "Unknown")
112113

113-
logger.info(f"{i}. Thread ID: {thread_id}")
114+
logger.info(f"{i}.")
115+
logger.info(f" Thread ID: {thread_id}")
114116
logger.info(f" Checkpoint ID: {checkpoint_id}")
115117

116118
# Count messages in this checkpoint
@@ -140,7 +142,12 @@ def list_checkpoints(
140142

141143
@app.command()
142144
def list_messages(
143-
thread_id: str = typer.Argument(help="Thread ID to retrieve messages from"),
145+
thread_id: str = typer.Option(
146+
...,
147+
"--thread-id",
148+
"-i",
149+
help="Thread ID of the checkpoint to list messages from",
150+
),
144151
checkpoint_type: str = typer.Option(
145152
DEFAULT_CHECKPOINT_TYPE.value,
146153
"--type",

0 commit comments

Comments
 (0)