Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/EmergenceAI/Agent-E into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-akkil committed Jun 6, 2024
2 parents b30f7e2 + ce2d707 commit b343752
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ae/core/autogen_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ async def process_command(self, command: str, current_url: str | None = None) ->
silent=False,
cache=None,
)
# reset usage summary for all agents after each command
for agent in self.agents_map.values():
print(">>> agent:", agent)
if hasattr(agent, "client") and agent.client is not None:
agent.client.clear_usage_summary() # type: ignore
return result
except openai.BadRequestError as bre:
logger.error(f"Unable to process command: \"{command}\". {bre}")
Expand Down
2 changes: 1 addition & 1 deletion ae/core/skills/get_dom_with_content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ async def get_filtered_text_content(page: Page) -> str:
return textContent;
}
""")
return text_content
return text_content
1 change: 1 addition & 0 deletions test/evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def __call__(

score = 1.0
for approach, value in task_config["eval"]["reference_answers"].items():

match approach:
case "exact_match":
logger.info(f"Evaluating exact_match for answer: Predicted: {pred} , Reference: {value}")
Expand Down
1 change: 1 addition & 0 deletions test/tests_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ae.core.playwright_manager import PlaywrightManager
from ae.utils.logger import logger
from autogen.agentchat.chat import ChatResult # type: ignore
from autogen.agentchat import Agent
from playwright.async_api import Page
from tabulate import tabulate
from termcolor import colored
Expand Down

0 comments on commit b343752

Please sign in to comment.