mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
use basemodel instead
This commit is contained in:
parent
a7c5827419
commit
0355c6e720
@ -8,7 +8,7 @@ from enum import Enum
|
||||
from typing import TYPE_CHECKING, Literal
|
||||
from uuid import UUID, uuid4
|
||||
|
||||
from pydantic import Field
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from openhands.agent_server.utils import OpenHandsUUID, utc_now
|
||||
from openhands.app_server.event_callback.event_callback_result_models import (
|
||||
@ -36,7 +36,7 @@ class EventCallbackStatus(Enum):
|
||||
ERROR = 'ERROR'
|
||||
|
||||
|
||||
class EventCallbackProcessor(DiscriminatedUnionMixin, ABC):
|
||||
class EventCallbackProcessor(BaseModel, ABC):
|
||||
@abstractmethod
|
||||
async def __call__(
|
||||
self,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user