File size: 1,187 Bytes
246d201 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
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')
EDIT: str = Field(default='edit')
BROWSE: str = Field(default='browse')
"""The HTML content of a URL
"""
RUN: str = Field(default='run')
"""The output of a command
"""
RUN_IPYTHON: str = Field(default='run_ipython')
"""Runs a IPython cell.
"""
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')
SUCCESS: str = Field(default='success')
NULL: str = Field(default='null')
AGENT_STATE_CHANGED: str = Field(default='agent_state_changed')
USER_REJECTED: str = Field(default='user_rejected')
CONDENSE: str = Field(default='condense')
"""Result of a condensation operation."""
ObservationType = ObservationTypeSchema()
|