Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Async Functionality and Apply Code Refactoring #831 #849

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Empty file added src/__init__.py
Empty file.
894 changes: 486 additions & 408 deletions src/smolagents/agents.py

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/smolagents/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
import os

from dotenv import load_dotenv

from smolagents import CodeAgent, HfApiModel, LiteLLMModel, Model, OpenAIServerModel, Tool, TransformersModel
from smolagents.default_tools import TOOL_MAPPING


leopard_prompt = "How many seconds would it take for a leopard at full speed to run through Pont des Arts?"


Expand Down
3 changes: 2 additions & 1 deletion src/smolagents/local_python_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,8 @@ def final_answer(value):


class PythonExecutor:
pass
def __call__(self, *args, **kwargs):
raise NotImplementedError


class LocalPythonExecutor(PythonExecutor):
Expand Down
Loading