Save pattern execution log.
(
pattern_name: str, input_content: str, output_content: str, timestamp: str
)
| 663 | |
| 664 | |
| 665 | def save_output_log( |
| 666 | pattern_name: str, input_content: str, output_content: str, timestamp: str |
| 667 | ): |
| 668 | """Save pattern execution log.""" |
| 669 | log_entry = { |
| 670 | "timestamp": timestamp, |
| 671 | "pattern_name": pattern_name, |
| 672 | "input": input_content, |
| 673 | "output": output_content, |
| 674 | "is_starred": False, |
| 675 | "custom_name": "", |
| 676 | } |
| 677 | st.session_state.output_logs.append(log_entry) |
| 678 | # Save outputs after each new log entry |
| 679 | save_outputs() |
| 680 | |
| 681 | |
| 682 | def star_output(log_index: int, custom_name: str = "") -> bool: |
no test coverage detected