CopilotJ / data /copilotj /plugin /snapshot_manager.py
introvoyz045's picture
Migrated from GitHub
04f192c verified
Raw History Blame Contribute Delete
659 Bytes
# SPDX-FileCopyrightText: Copyright contributors to the CopilotJ project.
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any
from copilotj.plugin._base import Request
from copilotj.plugin.awt import SnapshotDifference
from copilotj.plugin.awt.action import TypedActionResponse
__all__ = ["CompareSnapshotRequest"]
class CompareSnapshotRequest(Request[SnapshotDifference], event="compare_snapshots", response_type=SnapshotDifference):
id_early: int
id_later: int | None
class ActionRequest(Request[Any], event="run_action", response_type=TypedActionResponse):
snapshot_id: int
action_id: int
parameters: list[Any] | None