mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-15 01:38:12 -05:00
23 lines
609 B
Python
23 lines
609 B
Python
from dataclasses import dataclass
|
|
|
|
from openhands.core.schema import ObservationType
|
|
from openhands.events.observation.observation import Observation
|
|
|
|
|
|
@dataclass
|
|
class AgentDelegateObservation(Observation):
|
|
"""This data class represents the result from delegating to another agent.
|
|
|
|
Attributes:
|
|
content (str): The content of the observation.
|
|
outputs (dict): The outputs of the delegated agent.
|
|
observation (str): The type of observation.
|
|
"""
|
|
|
|
outputs: dict
|
|
observation: str = ObservationType.DELEGATE
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return ''
|