INNER CODE UNIT · Python

print_memory

shakedzy/companion · companion.py:417

def print_memory():
    """
    Helper endpoint for debugging. Print memory.
    """
    return json.dumps(memory.list, indent=4)


@app.route('/memory/updates', methods=['GET'])
def print_memory_updates():
    """
    Helper endpoint for debugging. Print memory updates.
    """
    return json.dumps(memory.updates, indent=4)


def exit_graceful(signum, frame) -> None:
    """
    Stop threads when app terminates.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…