File size: 659 Bytes
04f192c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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