mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
* Replace OpenDevin with OpenHands * Update CONTRIBUTING.md * Update README.md * Update README.md * update poetry lock; move opendevin folder to openhands * fix env var * revert image references in docs * revert permissions * revert permissions --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
24 lines
582 B
Python
24 lines
582 B
Python
from dataclasses import dataclass
|
|
|
|
from openhands.core.schema import ObservationType
|
|
|
|
from .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 ''
|