Added web agent

This commit is contained in:
2024-11-01 18:25:37 +01:00
parent f48b87f037
commit aadb841eb8
6 changed files with 448 additions and 103 deletions

View File

@@ -1,9 +1,8 @@
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .working_memory import WorkingMemory
from .command_result import CommandResult
from .working_memory import WorkingMemory
from .command_result import CommandResult
class Command(ABC):
"""
@@ -12,7 +11,7 @@ class Command(ABC):
"""
@abstractmethod
def execute(self, memory: 'WorkingMemory') -> 'CommandResult':
def execute(self, memory: WorkingMemory) -> CommandResult:
"""
Execute the command on the given working memory.