Spaces:
Build error
Build error
| from dataclasses import dataclass, field | |
| from typing import Any | |
| from openhands.core.schema import ObservationType | |
| from openhands.events.observation.observation import Observation | |
| class MCPObservation(Observation): | |
| """This data class represents the result of a MCP Server operation.""" | |
| observation: str = ObservationType.MCP | |
| name: str = '' # The name of the MCP tool that was called | |
| arguments: dict[str, Any] = field( | |
| default_factory=dict | |
| ) # The arguments passed to the MCP tool | |
| def message(self) -> str: | |
| return self.content | |