File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ environment = { python-version = "3.10" }
9696unknown-argument = " ignore"
9797invalid-parameter-default = " ignore"
9898non-subscriptable = " ignore"
99- possibly-unbound-attribute = " ignore"
10099unresolved-attribute = " ignore"
101100invalid-argument-type = " ignore"
102101invalid-type-form = " ignore"
103102invalid-assignment = " ignore"
103+ possibly-missing-attribute = " ignore"
Original file line number Diff line number Diff 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 ()
142144def 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" ,
You can’t perform that action at this time.
0 commit comments