Spaces:
Configuration error
Configuration error
Download openhands/microagent/types.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/microagent/types.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/microagent/types.py
-
curl -L -o types.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/microagent/types.py
684 Bytes
| from enum import Enum | |
| from pydantic import BaseModel, Field | |
| class MicroAgentType(str, Enum): | |
| """Type of microagent.""" | |
| KNOWLEDGE = 'knowledge' | |
| REPO_KNOWLEDGE = 'repo' | |
| TASK = 'task' | |
| class MicroAgentMetadata(BaseModel): | |
| """Metadata for all microagents.""" | |
| name: str = 'default' | |
| type: MicroAgentType = Field(default=MicroAgentType.KNOWLEDGE) | |
| version: str = Field(default='1.0.0') | |
| agent: str = Field(default='CodeActAgent') | |
| triggers: list[str] = [] # optional, only exists for knowledge microagents | |
| class TaskInput(BaseModel): | |
| """Input parameter for task-based agents.""" | |
| name: str | |
| description: str | |
| required: bool = True | |