mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
* basic microagent structure * start on jinja * add instructions parser * add action instructions * add history instructions * fix a few issues * fix a few issues * fix issues * fix agent encoding * fix up anon class * prompt to fix errors * less debug info when errors happen * add another traceback * add output to finish * fix math prompt * fix pg prompt * fix up json prompt * fix math prompt * fix math prompt * fix repo prompt * fix up repo explorer * update lock * revert changes to agent_controller * refactor microagent registration a bit * create delegate action * delegation working * add finish action to manager * fix tests * rename microagents registry * rename fn * logspam * add metadata to manager agent * fix message * move repo_explorer * add delegator agent * rename agent_definition * fix up input-output plumbing * fix tests * Update agenthub/micro/math_agent/agent.yaml Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> * Update agenthub/delegator_agent/prompt.py Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> * Update agenthub/delegator_agent/prompt.py Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> * remove prompt.py * fix lint * Update agenthub/micro/postgres_agent/agent.yaml Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> * Update agenthub/micro/postgres_agent/agent.yaml Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> * fix error --------- Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
43 lines
831 B
Python
43 lines
831 B
Python
from pydantic import BaseModel, Field
|
|
|
|
__all__ = [
|
|
'ObservationType'
|
|
]
|
|
|
|
|
|
class ObservationTypeSchema(BaseModel):
|
|
READ: str = Field(default='read')
|
|
"""The content of a file
|
|
"""
|
|
|
|
WRITE: str = Field(default='write')
|
|
|
|
BROWSE: str = Field(default='browse')
|
|
"""The HTML content of a URL
|
|
"""
|
|
|
|
RUN: str = Field(default='run')
|
|
"""The output of a command
|
|
"""
|
|
|
|
RECALL: str = Field(default='recall')
|
|
"""The result of a search
|
|
"""
|
|
|
|
CHAT: str = Field(default='chat')
|
|
"""A message from the user
|
|
"""
|
|
|
|
DELEGATE: str = Field(default='delegate')
|
|
"""The result of a task delegated to another agent
|
|
"""
|
|
|
|
MESSAGE: str = Field(default='message')
|
|
|
|
ERROR: str = Field(default='error')
|
|
|
|
NULL: str = Field(default='null')
|
|
|
|
|
|
ObservationType = ObservationTypeSchema()
|