Skip to content

Commit d503c1a

Browse files
committed
adding some documentation
1 parent f050a0d commit d503c1a

7 files changed

Lines changed: 46 additions & 4 deletions

File tree

src/agentlab/agents/__init__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
"""TEST
1+
"""
2+
AgentLab's agent implementations
3+
4+
This module contains the agent implementations for AgentLab. With currently:
5+
6+
- GenericAgent: Our baseline agent for evaluation
7+
8+
- MostBasicAgent: A basic agent for learning our framework
9+
10+
- TapeAgent: An agent that uses the Tape data structure to perform actions
211
3-
Stuff written here
12+
- VisualWebArenaAgent: An implentation of the agent used in WebArena and VisualWebArena
413
"""

src/agentlab/agents/generic_agent/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
"""
2+
Baseline agent for all ServiceNow papers
3+
4+
This module contains the GenericAgent class, which is the baseline agent for all ServiceNow papers. \
5+
It is a simple agent that can be ran OOB on all BrowserGym environments. It is also shipped with \
6+
a few configurations that can be used to run it on different environments.
7+
"""
8+
19
from .agent_configs import (
210
AGENT_3_5,
311
AGENT_8B,
12+
AGENT_CUSTOM,
413
AGENT_LLAMA3_70B,
514
AGENT_LLAMA31_70B,
6-
AGENT_CUSTOM,
715
RANDOM_SEARCH_AGENT,
816
AGENT_4o,
917
AGENT_4o_MINI,

src/agentlab/agents/generic_agent/agent_configs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Basic flags and agent configurations for generic agents.
3+
"""
4+
15
import bgym
26

37
from agentlab.agents import dynamic_prompting as dp

src/agentlab/agents/generic_agent/generic_agent.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""
2+
GenericAgent implementation for AgentLab
3+
4+
This module defines a `GenericAgent` class and its associated arguments for use in the AgentLab framework. \
5+
The `GenericAgent` class is designed to interact with a chat-based model to determine actions based on \
6+
observations. It includes methods for preprocessing observations, generating actions, and managing internal \
7+
state such as plans, memories, and thoughts. The `GenericAgentArgs` class provides configuration options for \
8+
the agent, including model arguments and flags for various behaviors.
9+
"""
10+
111
from copy import deepcopy
212
from dataclasses import asdict, dataclass
313
from functools import partial

src/agentlab/agents/generic_agent/generic_agent_prompt.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Prompt builder for GenericAgent
3+
4+
It is based on the dynamic_prompting module from the agentlab package.
5+
"""
6+
17
import logging
28
from dataclasses import dataclass
39

src/agentlab/agents/generic_agent/reproducibility_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Reproducibility Agent
1+
"""
2+
An agent that reproduces exactly the same traces as GenericAgent, to compare the results.
23
34
45
This module contains the classes and functions to reproduce the results of a

src/agentlab/agents/generic_agent/tmlr_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Specific configurations for our 2024 TMLR submission.
3+
"""
4+
15
from copy import deepcopy
26

37
from agentlab.agents import dynamic_prompting as dp

0 commit comments

Comments
 (0)