-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import os | ||
|
||
from agentlite.commons import AgentAct, TaskPackage | ||
from agentlite.logging.utils import * | ||
from agentlite.utils import bcolors | ||
|
||
|
||
class BaseAgentLogger: | ||
def __init__( | ||
self, | ||
log_file_name: str = "agent.log", | ||
) -> None: | ||
self.log_file_name = log_file_name | ||
|
||
def receive_task(self, task: TaskPackage, agent_name: str): | ||
"""the agent receives a task and log it""" | ||
pass | ||
|
||
def execute_task(self, task: TaskPackage = None, agent_name: str = None, **kwargs): | ||
"""the agent starts to execute the task""" | ||
pass | ||
|
||
def end_execute(self, task: TaskPackage, agent_name: str = None): | ||
"""the agent finishes the task""" | ||
pass | ||
|
||
def take_action(self, action: AgentAct, agent_name: str, step_idx: int): | ||
"""the agent takes an action""" | ||
pass | ||
|
||
def get_obs(self, obs: str): | ||
"""get observation""" | ||
pass | ||
|
||
def get_prompt(self, prompt): | ||
"""get prompt""" | ||
pass | ||
|
||
def get_llm_output(self, output: str): | ||
"""get llm output""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters