š« CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
feat: Add Runtime for tool calling (#1163)
Xukun Liu2f8881d53433
diff --git a/.gitignore b/.gitignoreindex e3ea245a4..2480ca67b 100644--- a/.gitignore+++ b/.gitignore@@ -420,3 +420,7 @@ logs/datasets_test/evaluation_data/camel_data/++#Benchmark+benchmark/gaia/Dataset+benchmark/gaia/results.jsonldiff --git a/camel/runtime/__init__.py b/camel/runtime/__init__.pynew file mode 100644index 000000000..2f8177469--- /dev/null+++ b/camel/runtime/__init__.py@@ -0,0 +1,29 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from .base import BaseRuntime+from .configs import TaskConfig+from .docker_runtime import DockerRuntime+from .llm_guard_runtime import LLMGuardRuntime+from .remote_http_runtime import RemoteHttpRuntime++# TODO: Add Celery Runtime to support distributed computing,+# Rate Limiting, Load Balancing, etc.++__all__ = [+ "BaseRuntime",+ "DockerRuntime",+ "RemoteHttpRuntime",+ "LLMGuardRuntime",+ "TaskConfig",+]diff --git a/camel/runtime/api.py b/camel/runtime/api.pynew file mode 100644index 000000000..cf5b5bc27--- /dev/null+++ b/camel/runtime/api.py@@ -0,0 +1,93 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import importlib+import io+import json+import logging+import os+import sys+from typing import Dict++import uvicorn+from fastapi import FastAPI, Request+from fastapi.responses import JSONResponse++from camel.toolkits import BaseToolkit++logger = logging.getLogger(__name__)++sys.path.append(os.getcwd())++modules_functions = sys.argv[1:]++logger.info(f"Modules and functions: {modules_functions}")++app = FastAPI()++[email protected]_handler(Exception)+async def general_exception_handler(request: Request, exc: Exception):+ return JSONResponse(+ status_code=500,+ content={+ "detail": "Internal Server Error",+ "error_message": str(exc),+ },+ )+++for module_function in modules_functions:+ try:+ init_params = dict()+ if "{" in module_function:+ module_function, params = module_function.split("{")+ params = "{" + params+ init_params = json.loads(params)++ module_name, function_name = module_function.rsplit(".", 1)++ logger.info(f"Importing {module_name} and function {function_name}")++ module = importlib.import_module(module_name)+ function = getattr(module, function_name)+ if isinstance(function, type) and issubclass(function, BaseToolkit):+ function = function(**init_params).get_tools()++ if not isinstance(function, list):+ function = [function]++ for func in function:++ @app.post(f"/{func.get_function_name()}")+ async def dynamic_function(data: Dict, func=func):+ redirect_stdout = data.get('redirect_stdout', False)+ if redirect_stdout:+ sys.stdout = io.StringIO()+ response_data = func.func(*data['args'], **data['kwargs'])+ if redirect_stdout:+ sys.stdout.seek(0)+ output = sys.stdout.read()+ sys.stdout = sys.__stdout__+ return {+ "output": json.dumps(response_data),+ "stdout": output,+ }+ return {"output": json.dumps(response_data)}++ except (ImportError, AttributeError) as e:+ logger.error(f"Error importing {module_function}: {e}")+++if __name__ == "__main__":+ uvicorn.run("__main__:app", host="0.0.0.0", port=8000, reload=True)diff --git a/camel/runtime/base.py b/camel/runtime/base.pynew file mode 100644index 000000000..622ef4f7a--- /dev/null+++ b/camel/runtime/base.py@@ -0,0 +1,45 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from abc import ABC, abstractmethod+from typing import Any, List, Union++from camel.toolkits import FunctionTool+++class BaseRuntime(ABC):+ r"""An abstract base class for all CAMEL runtimes."""++ def __init__(self):+ super().__init__()++ self.tools_map = dict()++ @abstractmethod+ def add(+ self,+ funcs: Union[FunctionTool, List[FunctionTool]],+ *args: Any,+ **kwargs: Any,+ ) -> "BaseRuntime":+ r"""Adds a new tool to the runtime."""+ pass++ @abstractmethod+ def reset(self, *args: Any, **kwargs: Any) -> Any:+ r"""Resets the runtime to its initial state."""+ pass++ def get_tools(self) -> List[FunctionTool]:+ r"""Returns a list of all tools in the runtime."""+ return list(self.tools_map.values())diff --git a/camel/runtime/configs.py b/camel/runtime/configs.pynew file mode 100644index 000000000..4a83271bc--- /dev/null+++ b/camel/runtime/configs.py@@ -0,0 +1,56 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from typing import Dict, List, Optional, Union++from pydantic import BaseModel+++class TaskConfig(BaseModel):+ r"""A configuration for a task to run a command inside the container.++ Arttributes:+ cmd (str or list): Command to be executed+ stdout (bool): Attach to stdout. (default::obj: `True`)+ stderr (bool): Attach to stderr. (default::obj: `True`)+ stdin (bool): Attach to stdin. (default::obj: `False`)+ tty (bool): Allocate a pseudo-TTY. (default::obj: `False`)+ privileged (bool): Run as privileged. (default::obj: `False`)+ user (str): User to execute command as. (default::obj: `""`)+ detach (bool): If true, detach from the exec command.+ (default::obj: `False`)+ stream (bool): Stream response data. (default::obj: `False`)+ socket (bool): Return the connection socket to allow custom+ read/write operations. (default::obj: `False`)+ environment (dict or list): A dictionary or a list of strings in+ the following format ``["PASSWORD=xxx"]`` or+ ``{"PASSWORD": "xxx"}``. (default::obj: `None`)+ workdir (str): Path to working directory for this exec session.+ (default::obj: `None`)+ demux (bool): Return stdout and stderr separately. (default::obj:+ `False`)+ """++ cmd: Union[str, List[str]]+ stdout: bool = True+ stderr: bool = True+ stdin: bool = False+ tty: bool = False+ privileged: bool = False+ user: str = ""+ detach: bool = False+ stream: bool = False+ socket: bool = False+ environment: Optional[Union[Dict[str, str], List[str]]] = None+ workdir: Optional[str] = None+ demux: bool = Falsediff --git a/camel/runtime/docker_runtime.py b/camel/runtime/docker_runtime.pynew file mode 100644index 000000000..a5c7abb82--- /dev/null+++ b/camel/runtime/docker_runtime.py@@ -0,0 +1,404 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import io+import json+import logging+import os+import tarfile+import time+from functools import wraps+from pathlib import Path+from random import randint+from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union++import requests+from pydantic import BaseModel+from tqdm import tqdm++from camel.runtime import BaseRuntime, TaskConfig+from camel.toolkits import FunctionTool++if TYPE_CHECKING:+ from docker.models.containers import Container++logger = logging.getLogger(__name__)+++class DockerRuntime(BaseRuntime):+ r"""A class representing a runtime environment using Docker.+ This class automatically wraps functions to be executed+ in a Docker container.++ Args:+ image (str): The name of the Docker image to use for the runtime.+ port (int): The port number to use for the runtime API. (default::obj:+ `8000`)+ remove (bool): Whether to remove the container after stopping it. '+ (default::obj: `True`)+ kwargs (dict): Additional keyword arguments to pass to the+ Docker client.+ """++ def __init__(+ self, image: str, port: int = 8000, remove: bool = True, **kwargs+ ):+ super().__init__()++ import docker++ self.client = docker.from_env()+ self.container: Optional[Container] = None++ api_path = Path(__file__).parent / "api.py"+ self.mounts: Dict[Path, Path] = dict()+ self.cp: Dict[Path, Path] = {api_path: Path("/home")}+ self.entrypoint: Dict[str, str] = dict()+ self.tasks: List[TaskConfig] = []++ self.docker_config = kwargs+ self.image = image+ self.port = port if port > 0 else randint(10000, 20000)+ self.remove = remove++ if not self.client.images.list(name=self.image):+ logger.warning(+ f"Image {self.image} not found. Pulling from Docker Hub."+ )+ self.client.images.pull(self.image)++ def mount(self, path: str, mount_path: str) -> "DockerRuntime":+ r"""Mount a local directory to the container.++ Args:+ path (str): The local path to mount.+ mount_path (str): The path to mount the local directory to in the+ container.++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """++ _path, _mount_path = Path(path), Path(mount_path)+ if not _path.exists():+ raise FileNotFoundError(f"Path {_path} does not exist.")+ if not _path.is_dir():+ raise NotADirectoryError(f"Path {_path} is not a directory.")+ if not _path.is_absolute():+ raise ValueError(f"Path {_path} is not absolute.")+ if not _mount_path.is_absolute():+ raise ValueError(f"Mount path {_mount_path} is not absolute.")++ self.mounts[_path] = _mount_path+ return self++ def copy(self, source: str, dest: str) -> "DockerRuntime":+ r"""Copy a file or directory to the container.++ Args:+ source (str): The local path to the file.+ dest (str): The path to copy the file to in the container.++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """+ _source, _dest = Path(source), Path(dest)+ if not _source.exists():+ raise FileNotFoundError(f"Source {_source} does not exist.")++ self.cp[_source] = _dest+ return self++ def add_task(+ self,+ task: TaskConfig,+ ) -> "DockerRuntime":+ r"""Add a task to run a command inside the container when building.+ Similar to `docker exec`.++ Args:+ task (TaskConfig): The configuration for the task.++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """+ self.tasks.append(task)+ return self++ def exec_run(+ self,+ task: TaskConfig,+ ) -> Any:+ r"""Run a command inside this container. Similar to `docker exec`.++ Args:+ task (TaskConfig): The configuration for the task.++ Returns:+ (ExecResult): A tuple of (exit_code, output)+ exit_code: (int):+ Exit code for the executed command or `None` if+ either `stream` or `socket` is `True`.+ output: (generator, bytes, or tuple):+ If `stream=True`, a generator yielding response chunks.+ If `socket=True`, a socket object for the connection.+ If `demux=True`, a tuple of two bytes: stdout and stderr.+ A bytestring containing response data otherwise.++ Raises:+ RuntimeError: If the container does not exist.+ """+ if not self.container:+ raise RuntimeError(+ "Container does not exist. Please build the container first."+ )++ return self.container.exec_run(**task.model_dump())++ def build(self, time_out: int = 15) -> "DockerRuntime":+ r"""Build the Docker container and start it.++ Args:+ time_out (int): The number of seconds to wait for the container to+ start. (default::obj: `15`)++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """+ if self.container:+ logger.warning("Container already exists. Nothing to build.")+ return self++ import docker+ from docker.types import Mount++ mounts = []+ for local_path, mount_path in self.mounts.items():+ mounts.append(+ Mount(+ target=str(mount_path), source=str(local_path), type="bind"+ )+ )++ container_params = {+ "image": self.image,+ "detach": True,+ "mounts": mounts,+ "command": "sleep infinity",+ **self.docker_config,+ }+ container_params["ports"] = {"8000/tcp": self.port}+ try:+ self.container = self.client.containers.create(**container_params)+ except docker.errors.APIError as e:+ raise RuntimeError(f"Failed to create container: {e!s}")++ try:+ self.container.start()+ # Wait for the container to start+ for _ in range(time_out):+ self.container.reload()+ logger.debug(f"Container status: {self.container.status}")+ if self.container.status == "running":+ break+ time.sleep(1)++ except docker.errors.APIError as e:+ raise RuntimeError(f"Failed to start container: {e!s}")++ # Copy files to the container if specified+ for local_path, container_path in self.cp.items():+ logger.info(f"Copying {local_path} to {container_path}")+ try:+ with io.BytesIO() as tar_stream:+ with tarfile.open(fileobj=tar_stream, mode="w") as tar:+ tar.add(+ local_path, arcname=os.path.basename(local_path)+ )+ tar_stream.seek(0)+ self.container.put_archive(+ str(container_path), tar_stream.getvalue()+ )+ except docker.errors.APIError as e:+ raise RuntimeError(+ f"Failed to copy file {local_path} to container: {e!s}"+ )++ if self.tasks:+ for task in tqdm(self.tasks, desc="Running tasks"):+ self.exec_run(task)++ exec = ["python3", "api.py", *list(self.entrypoint.values())]++ self.container.exec_run(exec, workdir="/home", detach=True)++ logger.info(f"Container started on port {self.port}")+ return self++ def add( # type: ignore[override]+ self,+ funcs: Union[FunctionTool, List[FunctionTool]],+ entrypoint: str,+ redirect_stdout: bool = False,+ arguments: Optional[Dict[str, Any]] = None,+ ) -> "DockerRuntime":+ r"""Add a function or list of functions to the runtime.++ Args:+ funcs (Union[FunctionTool, List[FunctionTool]]): The function or+ list of functions to add.+ entrypoint (str): The entrypoint for the function.+ redirect_stdout (bool): Whether to return the stdout of+ the function. (default::obj: `False`)+ arguments (Optional[Dict[str, Any]]): The arguments for the+ function. (default::obj: `None`)++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """++ if not isinstance(funcs, list):+ funcs = [funcs]++ if arguments is not None:+ entrypoint += json.dumps(arguments)++ for func in funcs:+ inner_func = func.func++ # Create a wrapper that explicitly binds `func`+ @wraps(inner_func)+ def wrapper(+ *args, func=func, redirect_stdout=redirect_stdout, **kwargs+ ):+ for key, value in kwargs.items():+ if isinstance(value, BaseModel):+ kwargs[key] = value.model_dump()++ resp = requests.post(+ f"http://localhost:{self.port}/{func.get_function_name()}",+ json=dict(+ args=args,+ kwargs=kwargs,+ redirect_stdout=redirect_stdout,+ ),+ )+ if resp.status_code != 200:+ logger.error(+ f"""ailed to execute function:+ {func.get_function_name()},+ status code: {resp.status_code},+ response: {resp.text}"""+ )+ return {+ "error": f"""Failed to execute function:+ {func.get_function_name()},+ response: {resp.text}"""+ }+ data = resp.json()+ if redirect_stdout:+ print(data["stdout"])+ return json.loads(data["output"])++ func.func = wrapper+ self.tools_map[func.get_function_name()] = func+ self.entrypoint[func.get_function_name()] = entrypoint++ return self++ def reset(self) -> "DockerRuntime":+ r"""Reset the DockerRuntime instance.++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """++ return self.stop().build()++ def stop(self, remove: Optional[bool] = None) -> "DockerRuntime":+ r"""stop the Docker container.++ Args:+ remove (Optional[bool]): Whether to remove the container+ after stopping it. (default::obj: `None`)++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """+ if self.container:+ self.container.stop()+ if remove is None:+ remove = self.remove+ if remove:+ logger.info("Removing container.")+ self.container.remove()+ self.container = None+ else:+ logger.warning("No container to stop.")+ return self++ @property+ def ok(self) -> bool:+ r"""Check if the API Server is running.++ Returns:+ bool: Whether the API Server is running.+ """+ if not self.container:+ return False+ try:+ _ = requests.get(f"http://localhost:{self.port}")+ return True+ except requests.exceptions.ConnectionError:+ return False++ def wait(self, timeout: int = 10) -> bool:+ r"""Wait for the API Server to be ready.++ Args:+ timeout (int): The number of seconds to wait. (default::obj: `10`)++ Returns:+ bool: Whether the API Server is ready.+ """+ for _ in range(timeout):+ if self.ok:+ return True+ time.sleep(1)+ return False++ def __enter__(self) -> "DockerRuntime":+ r"""Enter the context manager.++ Returns:+ DockerRuntime: The DockerRuntime instance.+ """+ if not self.container:+ return self.build()+ logger.warning(+ "Container already exists. Returning existing container."+ )+ return self++ def __exit__(self, exc_type, exc_val, exc_tb):+ r"""Exit the context manager."""+ self.stop()++ @property+ def docs(self) -> str:+ r"""Get the URL for the API documentation.++ Returns:+ str: The URL for the API documentation.+ """+ return f"http://localhost:{self.port}/docs"diff --git a/camel/runtime/llm_guard_runtime.py b/camel/runtime/llm_guard_runtime.pynew file mode 100644index 000000000..e42bfb7fd--- /dev/null+++ b/camel/runtime/llm_guard_runtime.py@@ -0,0 +1,199 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import json+import logging+from functools import wraps+from typing import List, Optional, Union++from camel.agents import ChatAgent+from camel.configs import ChatGPTConfig+from camel.models import BaseModelBackend, ModelFactory+from camel.runtime import BaseRuntime+from camel.runtime.utils import FunctionRiskToolkit, IgnoreRiskToolkit+from camel.toolkits import FunctionTool+from camel.types import ModelPlatformType, ModelType++logger = logging.getLogger(__name__)++GUARDPROMPT = """You are a function safety evaluator tasked with assessing the+potential risk level of a given function based on both its description+and parameters. Your goal is to determine if the function may pose any+harm to the user's environment, such as deleting files, executing+arbitrary code, or accessing sensitive information. Pay special attention+to the provided parameters ā even if a function has the potential to be+dangerous, its actual parameters may indicate harmless behavior, and the+risk level should be adjusted accordingly. Use the `function_risk` tool to+assign a risk score to the function, based on the following criteria:++- **Score 1**: No harm. This includes simple operations like mathematical+ calculations, content searches, or data retrievals that do not impact+ the user's environment or access sensitive resources. This also+ includes functions with potentially dangerous capabilities that have+ harmless, controlled parameters that ensure safe execution.+- **Score 2**: Minimal harm. The function might read user files, retrieve+ non-sensitive data, or access other low-risk resources,+ posing little risk to the user.+- **Score 3**: Risk present. The function might delete files, modify the+ file system, execute arbitrary code, or access sensitive data, which+ could negatively impact the user's environment. However, if the+ actual parameters provided clearly indicate safe and restricted+ usage, this risk should be downgraded accordingly.++When evaluating, always consider both the function's description and its+specific parameters. If the function appears risky due to its design but+the provided parameters indicate a safe and non-impactful operation,+adjust the risk score to reflect this. Assign an appropriate risk score+and provide a brief explanation of your reasoning based on the function's+description and the actual parameters given.+YOU MUST USE THE `function_risk` TOOL TO ASSESS THE RISK+LEVEL OF EACH FUNCTION.+"""+++class LLMGuardRuntime(BaseRuntime):+ r"""A runtime that evaluates the risk level of functions using+ a language model.++ Arguments:+ prompt (str): The prompt to use for the language model. (default:+ :obj:`GUARDPROMPT`)+ model (BaseModelBackend): The language model to use. (default::obj:+ `None`)+ verbose (bool): Whether to print verbose output. (default::obj:+ `False`)+ """++ def __init__(+ self,+ prompt: str = GUARDPROMPT,+ model: Optional[BaseModelBackend] = None,+ verbose: bool = False,+ ):+ super().__init__()+ self.prompt = prompt+ self.model = model+ self.verbose = verbose++ if not self.model:+ self.model = ModelFactory.create(+ model_platform=ModelPlatformType.DEFAULT,+ model_type=ModelType.DEFAULT,+ model_config_dict=ChatGPTConfig().as_dict(),+ )+ self.ignore_toolkit = IgnoreRiskToolkit(verbose=verbose)+ self.ignore_tool = self.ignore_toolkit.get_tools()[0]+ self.tools_map[self.ignore_tool.get_function_name()] = self.ignore_tool++ self.agent = ChatAgent(+ system_message=self.prompt,+ model=self.model,+ external_tools=[+ *FunctionRiskToolkit(verbose=verbose).get_tools(),+ ],+ )++ def add( # type: ignore[override]+ self,+ funcs: Union[FunctionTool, List[FunctionTool]],+ threshold: int = 2,+ ) -> "LLMGuardRuntime":+ r"""Add a function or list of functions to the runtime.++ Args:+ funcs (FunctionTool or List[FunctionTool]): The function or+ list of functions to add.+ threshold (int): The risk threshold for functions.+ (default::obj:`2`)++ Returns:+ LLMGuardRuntime: The current runtime.+ """++ if not isinstance(funcs, list):+ funcs = [funcs]++ for func in funcs:+ inner_func = func.func++ # Create a wrapper that explicitly binds `func`+ @wraps(inner_func)+ def wrapper(+ *args,+ func=func,+ inner_func=inner_func,+ threshold=threshold,+ **kwargs,+ ):+ function_name = func.get_function_name()+ if function_name in self.ignore_toolkit.ignored_risks:+ reason = self.ignore_toolkit.ignored_risks.pop(+ function_name+ )+ logger.info(+ f"Ignored risk for function {function_name}: {reason}"+ )+ return inner_func(*args, **kwargs)+ self.agent.init_messages()+ resp = self.agent.step(+ f"""+ Function is: {function_name}+ Function description: {func.get_function_description()}+ Args: {args}+ Kwargs: {kwargs}+ """+ )+ tool_call = resp.info.get("external_tool_request", None)+ if not tool_call:+ logger.error("No tool call found in response.")+ return {+ "error": "Risk assessment failed. Disabling function."+ }+ data = tool_call.function.arguments+ data = json.loads(data)+ if threshold < data["score"]:+ message = (+ f"Risk assessment not passed for {function_name}."+ f"Score: {data['score']} > Threshold: {threshold}"+ f"\nReason: {data['reason']}"+ )+ logger.warning(message)+ return {"error": message}++ logger.info(+ (+ f"Function {function_name} passed risk assessment."+ f"Score: {data['score']}, Reason: {data['reason']}"+ )+ )+ if self.verbose:+ print(+ (+ f"Function {function_name} passed risk assessment."+ f"Score: {data['score']}, Reason: {data['reason']}"+ )+ )+ return inner_func(*args, **kwargs)++ func.func = wrapper+ self.tools_map[func.get_function_name()] = func+ self.ignore_toolkit.add(func.get_function_name())++ return self++ def reset(self) -> "LLMGuardRuntime":+ r"""Resets the runtime to its initial state."""+ self.ignore_toolkit.ignored_risks = dict()+ self.agent.reset()++ return selfdiff --git a/camel/runtime/remote_http_runtime.py b/camel/runtime/remote_http_runtime.pynew file mode 100644index 000000000..40c4ed1a8--- /dev/null+++ b/camel/runtime/remote_http_runtime.py@@ -0,0 +1,204 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import atexit+import json+import logging+import subprocess+import time+from functools import wraps+from pathlib import Path+from subprocess import Popen+from typing import Any, Dict, List, Optional, Union++import requests+from pydantic import BaseModel++from camel.runtime import BaseRuntime+from camel.toolkits.function_tool import FunctionTool++logger = logging.getLogger(__name__)+++class RemoteHttpRuntime(BaseRuntime):+ r"""A runtime that runs functions in a remote HTTP server.+ You need to run the API server in the remote server first.++ Args:+ host (str): The host of the remote server.+ port (int): The port of the remote server. (default::obj: `8000`)+ python_exec (str): The python executable to run the API server.+ (default::obj: `python3`)+ """++ def __init__(+ self, host: str, port: int = 8000, python_exec: str = "python3"+ ):+ super().__init__()+ self.host = host+ self.port = port+ self.python_exec = python_exec+ self.api_path = Path(__file__).parent / "api.py"+ self.entrypoint: Dict[str, str] = dict()+ self.process: Optional[Popen] = None++ def build(self) -> "RemoteHttpRuntime":+ r"""Build the API server.++ Returns:+ RemoteHttpRuntime: The current runtime.+ """+ self.process = subprocess.Popen(+ [+ self.python_exec,+ str(self.api_path),+ *list(self.entrypoint.values()),+ ]+ )+ atexit.register(self._cleanup)+ return self++ def _cleanup(self):+ r"""Clean up the API server when exiting."""++ if self.process and self.process.poll() is None:+ self.process.terminate()+ self.process.wait()+ self.process = None++ def add( # type: ignore[override]+ self,+ funcs: Union[FunctionTool, List[FunctionTool]],+ entrypoint: str,+ redirect_stdout: bool = False,+ arguments: Optional[Dict[str, Any]] = None,+ ) -> "RemoteHttpRuntime":+ r"""Add a function or list of functions to the runtime.++ Args:+ funcs (Union[FunctionTool, List[FunctionTool]]): The function or+ list of functions to add.+ entrypoint (str): The entrypoint for the function.+ redirect_stdout (bool): Whether to return the stdout of+ the function. (default::obj: `False`)+ arguments (Optional[Dict[str, Any]]): The arguments for the+ function. (default::obj: `None`)++ Returns:+ RemoteHttpRuntime: The current runtime.+ """+ if not isinstance(funcs, list):+ funcs = [funcs]+ if arguments is not None:+ entrypoint += json.dumps(arguments)++ for func in funcs:+ inner_func = func.func++ # Create a wrapper that explicitly binds `func`+ @wraps(inner_func)+ def wrapper(+ *args, func=func, redirect_stdout=redirect_stdout, **kwargs+ ):+ for key, value in kwargs.items():+ if isinstance(value, BaseModel):+ kwargs[key] = value.model_dump()++ resp = requests.post(+ f"http://{self.host}:{self.port}/{func.get_function_name()}",+ json=dict(+ args=args,+ kwargs=kwargs,+ redirect_stdout=redirect_stdout,+ ),+ )+ if resp.status_code != 200:+ logger.error(+ f"""ailed to execute function:+ {func.get_function_name()},+ status code: {resp.status_code},+ response: {resp.text}"""+ )+ return {+ "error": f"""Failed to execute function:+ {func.get_function_name()},+ response: {resp.text}"""+ }+ data = resp.json()+ if redirect_stdout:+ print(data["stdout"])+ return json.loads(data["output"])++ func.func = wrapper+ self.tools_map[func.get_function_name()] = func+ self.entrypoint[func.get_function_name()] = entrypoint++ return self++ @property+ def ok(self) -> bool:+ r"""Check if the API Server is running.++ Returns:+ bool: Whether the API Server is running.+ """+ try:+ _ = requests.get(f"http://{self.host}:{self.port}")+ return True+ except requests.exceptions.ConnectionError:+ return False++ def wait(self, timeout: int = 10) -> bool:+ r"""Wait for the API Server to be ready.++ Args:+ timeout (int): The number of seconds to wait. (default::obj: `10`)++ Returns:+ bool: Whether the API Server is ready.+ """+ for _ in range(timeout):+ if self.ok:+ return True+ time.sleep(1)+ return False++ def __del__(self):+ r"""Clean up the API server when the object is deleted."""+ self._cleanup()++ def stop(self) -> "RemoteHttpRuntime":+ r"""Stop the API server.++ Returns:+ RemoteHttpRuntime: The current runtime.+ """+ self._cleanup()+ return self++ def reset(self) -> "RemoteHttpRuntime":+ r"""Reset the API server.++ Returns:+ RemoteHttpRuntime: The current runtime.+ """+ return self.stop().build()++ @property+ def docs(self) -> str:+ r"""Get the URL for the API documentation.++ Returns:+ str: The URL for the API documentation.+ """+ return f"http://{self.host}:{self.port}/docs"diff --git a/camel/runtime/utils/__init__.py b/camel/runtime/utils/__init__.pynew file mode 100644index 000000000..dc5dea2bf--- /dev/null+++ b/camel/runtime/utils/__init__.py@@ -0,0 +1,20 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from .function_risk_toolkit import FunctionRiskToolkit+from .ignore_risk_toolkit import IgnoreRiskToolkit++__all__ = [+ "FunctionRiskToolkit",+ "IgnoreRiskToolkit",+]diff --git a/camel/runtime/utils/function_risk_toolkit.py b/camel/runtime/utils/function_risk_toolkit.pynew file mode 100644index 000000000..040b259b6--- /dev/null+++ b/camel/runtime/utils/function_risk_toolkit.py@@ -0,0 +1,58 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from typing import List, Optional++from camel.toolkits import FunctionTool+from camel.toolkits.base import BaseToolkit+++class FunctionRiskToolkit(BaseToolkit):+ r"""A toolkit for assessing the risk associated with functions.++ Args:+ verbose (Optional[bool]): Whether to print verbose output.+ (default::obj:`False`)+ """++ def __init__(self, verbose: Optional[bool] = False):+ self.verbose = verbose++ def function_risk(self, score: int, reason: str):+ r"""Provides an assessment of the potential risk associated+ with a function.++ Args:+ score (int): The risk level associated with the function,+ ranging from 1 to 3:+ - 1: No harm+ (e.g., simple math operations, content searches)+ - 2: Minimal harm (e.g., accessing user files)+ - 3: Risk present+ (e.g., deleting files, modifying the file system)+ reason (str): A brief explanation of the reasoning behind+ the assigned score, describing the specific aspects that+ contribute to the assessed risk.+ """+ if self.verbose:+ print(f"Function risk assessment: {reason} (score: {score})")++ def get_tools(self) -> List[FunctionTool]:+ r"""Returns a list of FunctionTool objects representing the+ functions in the toolkit.++ Returns:+ List[FunctionTool]: A list of FunctionTool objects+ representing the functions in the toolkit.+ """+ return [FunctionTool(self.function_risk)]diff --git a/camel/runtime/utils/ignore_risk_toolkit.py b/camel/runtime/utils/ignore_risk_toolkit.pynew file mode 100644index 000000000..2d3fae487--- /dev/null+++ b/camel/runtime/utils/ignore_risk_toolkit.py@@ -0,0 +1,72 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from typing import Dict, List, Optional++from camel.toolkits import FunctionTool+from camel.toolkits.base import BaseToolkit+++class IgnoreRiskToolkit(BaseToolkit):+ r"""A toolkit for ignoring risks associated with functions.++ Args:+ function_names (Optional[List[str]]): A list of function names to+ ignore risks for. (default::obj:`None`)+ verbose (Optional[bool]): Whether to print verbose output.+ (default::obj:`False`)+ """++ def __init__(+ self,+ function_name: Optional[List[str]] = None,+ verbose: Optional[bool] = False,+ ):+ self.verbose = verbose+ self.function_names = function_name or []+ self.ignored_risks: Dict[str, str] = dict()++ def add(self, name: str):+ r"""Adds a function to the toolkit.++ Args:+ name (str): The name of the function to add.+ """+ self.function_names.append(name)++ def ignore_risk(self, name: str, reason: str) -> str:+ r"""Force ignores the risk associated with named function. This ONLY+ ignores the RISK for the NEXT Function Call.++ Args:+ name (str): The name of the function to ignore.+ reason (str): A brief explanation of the reasoning+ behind the decision to ignore the risk.+ """+ if name not in self.function_names:+ raise ValueError(f"Function {name} not found in the toolkit.")++ self.ignored_risks[name] = reason+ if self.verbose:+ print(f"Ignoring risk for function {name}: {reason}")+ return f"Ignored risk for function {name}!"++ def get_tools(self) -> List[FunctionTool]:+ r"""Returns a list of FunctionTool objects representing the+ functions in the toolkit.++ Returns:+ List[FunctionTool]: A list of FunctionTool objects representing+ the functions in the toolkit.+ """+ return [FunctionTool(self.ignore_risk)]diff --git a/camel/toolkits/code_execution.py b/camel/toolkits/code_execution.pyindex dfb93860b..cb3557627 100644--- a/camel/toolkits/code_execution.py+++ b/camel/toolkits/code_execution.py@@ -11,7 +11,7 @@# See the License for the specific language governing permissions and# limitations under the License.# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========-from typing import List, Literal+from typing import List, Literal, Optionalfrom camel.interpreters import InternalPythonInterpreterfrom camel.toolkits import FunctionTool@@ -22,7 +22,13 @@ class CodeExecutionToolkit(BaseToolkit):r"""A tookit for code execution.Args:- sandbox (str): the environment type used to execute code.+ sandbox (str): The environment type used to execute code.+ verbose (bool): Whether to print the output of the code execution.+ (default: :obj:`False`)+ unsafe_mode (bool): If `True`, the interpreter runs the code+ by `eval()` without any security check. (default: :obj:`False`)+ import_white_list ( Optional[List[str]]): A list of allowed imports.+ (default: :obj:`None`)"""def __init__(@@ -31,11 +37,18 @@ class CodeExecutionToolkit(BaseToolkit):"internal_python", "jupyter", "docker"] = "internal_python",verbose: bool = False,+ unsafe_mode: bool = False,+ import_white_list: Optional[List[str]] = None,) -> None:# TODO: Add support for docker and jupyter.self.verbose = verbose+ self.unsafe_mode = unsafe_mode+ self.import_white_list = import_white_list or list()if sandbox == "internal_python":- self.interpreter = InternalPythonInterpreter()+ self.interpreter = InternalPythonInterpreter(+ unsafe_mode=self.unsafe_mode,+ import_white_list=self.import_white_list,+ )else:raise RuntimeError(f"The sandbox type `{sandbox}` is not supported."diff --git a/camel/toolkits/search_toolkit.py b/camel/toolkits/search_toolkit.pyindex 34abd9d1d..491555c45 100644--- a/camel/toolkits/search_toolkit.py+++ b/camel/toolkits/search_toolkit.py@@ -274,7 +274,7 @@ class SearchToolkit(BaseToolkit):"""import wolframalpha- WOLFRAMALPHA_APP_ID = os.environ.get('WOLFRAMALPHA_APP_ID')+ WOLFRAMALPHA_APP_ID = os.environ.get("WOLFRAMALPHA_APP_ID")if not WOLFRAMALPHA_APP_ID:raise ValueError("`WOLFRAMALPHA_APP_ID` not found in environment "@@ -315,20 +315,20 @@ class SearchToolkit(BaseToolkit):"""# Extract the original query- query = result.get('@inputstring', '')+ query = result.get("@inputstring", "")# Initialize a dictionary to hold structured outputoutput = {"query": query, "pod_info": [], "final_answer": None}# Loop through each pod to extract the details- for pod in result.get('pod', []):+ for pod in result.get("pod", []):# Handle the case where subpod might be a list- subpod_data = pod.get('subpod', {})+ subpod_data = pod.get("subpod", {})if isinstance(subpod_data, list):# If it's a list, get the first item for 'plaintext' and 'img'description, image_url = next((- (data['plaintext'], data['img'])+ (data["plaintext"], data["img"])for data in subpod_dataif "plaintext" in data and "img" in data),@@ -336,11 +336,11 @@ class SearchToolkit(BaseToolkit):)else:# Otherwise, handle it as a dictionary- description = subpod_data.get('plaintext', '')- image_url = subpod_data.get('img', {}).get('@src', '')+ description = subpod_data.get("plaintext", "")+ image_url = subpod_data.get("img", {}).get("@src", "")pod_info = {- "title": pod.get('@title', ''),+ "title": pod.get("@title", ""),"description": description,"image_url": image_url,}@@ -349,7 +349,7 @@ class SearchToolkit(BaseToolkit):output["pod_info"].append(pod_info)# Get final answer- if pod.get('@primary', False):+ if pod.get("@primary", False):output["final_answer"] = descriptionreturn output@@ -373,10 +373,10 @@ class SearchToolkit(BaseToolkit):# Set up the query parametersparams = {- 'appid': app_id,- 'input': query,- 'podstate': ['Result__Step-by-step solution', 'Show all steps'],- 'format': 'plaintext',+ "appid": app_id,+ "input": query,+ "podstate": ["Result__Step-by-step solution", "Show all steps"],+ "format": "plaintext",}# Send the request@@ -388,16 +388,16 @@ class SearchToolkit(BaseToolkit):# Find all subpods within the 'Results' podfor subpod in root.findall(".//pod[@title='Results']//subpod"):# Check if the subpod has the desired stepbystepcontenttype- content_type = subpod.find('stepbystepcontenttype')+ content_type = subpod.find("stepbystepcontenttype")if content_type is not None and content_type.text in [- 'SBSStep',- 'SBSHintStep',+ "SBSStep",+ "SBSHintStep",]:- plaintext = subpod.find('plaintext')+ plaintext = subpod.find("plaintext")if plaintext is not None and plaintext.text:step_text = plaintext.text.strip()cleaned_step = step_text.replace(- 'Hint: |', ''+ "Hint: |", "").strip() # Remove 'Hint: |' if presentsteps.append(cleaned_step)diff --git a/examples/runtime/code_execution_with_docker_runtime.py b/examples/runtime/code_execution_with_docker_runtime.pynew file mode 100644index 000000000..3a437b1a1--- /dev/null+++ b/examples/runtime/code_execution_with_docker_runtime.py@@ -0,0 +1,103 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========++from colorama import Fore++from camel.agents import ChatAgent+from camel.configs import ChatGPTConfig+from camel.messages import BaseMessage+from camel.models import ModelFactory+from camel.runtime import DockerRuntime+from camel.toolkits.code_execution import CodeExecutionToolkit+from camel.types import ModelPlatformType, ModelType+from camel.utils import print_text_animated++# tools+toolkit = CodeExecutionToolkit(verbose=True)++# change to your own docker image+runtime = DockerRuntime("xukunliu/camel").add(+ toolkit.get_tools(),+ "camel.toolkits.CodeExecutionToolkit",+ dict(verbose=True),+ redirect_stdout=True,+)++tools = runtime.get_tools()++# set up LLM model+assistant_model_config = ChatGPTConfig(+ temperature=0.0,+)++model = ModelFactory.create(+ model_platform=ModelPlatformType.DEFAULT,+ model_type=ModelType.GPT_4O,+ model_config_dict=assistant_model_config.as_dict(),+)+++# set up agent+assistant_sys_msg = BaseMessage.make_assistant_message(+ role_name="Teacher",+ content=(+ "You are a personal math tutor and programmer. "+ "When asked a math question, "+ "write and run Python code to answer the question."+ ),+)++agent = ChatAgent(+ assistant_sys_msg,+ model,+ tools=tools,+)+agent.reset()+++# set up agent++with runtime as r:+ r.wait()+ prompt = (+ "Weng earns $12 an hour for babysitting. "+ "Yesterday, she just did 51 minutes of babysitting. How much did she earn?"+ )+ user_msg = BaseMessage.make_user_message(role_name="User", content=prompt)+ print(Fore.YELLOW + f"user prompt:\n{prompt}\n")++ response = agent.step(user_msg)+ for msg in response.msgs:+ print_text_animated(Fore.GREEN + f"Agent response:\n{msg.content}\n")+++# ruff: noqa: E501+"""+===============================================================================+user prompt:+Weng earns $12 an hour for babysitting. Yesterday, she just did 51 minutes of babysitting. How much did she earn?++Executed the code below:+```py+hourly_rate = 12+minutes_worked = 51+hourly_earnings = hourly_rate / 60 * minutes_worked+hourly_earnings+```+> Executed Results:+10.200000000000001+Agent response:+Weng earned $10.20 for babysitting for 51 minutes at a rate of $12 per hour.+===============================================================================+"""diff --git a/examples/runtime/code_execution_with_llm_guard_runtime.py b/examples/runtime/code_execution_with_llm_guard_runtime.pynew file mode 100644index 000000000..fd097852d--- /dev/null+++ b/examples/runtime/code_execution_with_llm_guard_runtime.py@@ -0,0 +1,97 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========++from colorama import Fore++from camel.agents import ChatAgent+from camel.configs import ChatGPTConfig+from camel.messages import BaseMessage+from camel.models import ModelFactory+from camel.runtime import LLMGuardRuntime+from camel.toolkits.code_execution import CodeExecutionToolkit+from camel.types import ModelPlatformType, ModelType+from camel.utils import print_text_animated++# tools+toolkit = CodeExecutionToolkit(verbose=False)+++runtime = LLMGuardRuntime(verbose=True).add(+ *CodeExecutionToolkit().get_tools()+)++tools = runtime.get_tools()++print("Tools:")+for tool in tools:+ print(tool.get_function_name())++# set up LLM model+assistant_model_config = ChatGPTConfig(+ temperature=0.0,+)++model = ModelFactory.create(+ model_platform=ModelPlatformType.DEFAULT,+ model_type=ModelType.DEFAULT,+ model_config_dict=assistant_model_config.as_dict(),+)+++# set up agent+assistant_sys_msg = BaseMessage.make_assistant_message(+ role_name="Teacher",+ content=(+ "You are a personal math tutor and programmer. "+ "When asked a math question, "+ "write and run Python code to answer the question."+ ),+)++agent = ChatAgent(+ assistant_sys_msg,+ model,+ tools=tools,+)+agent.reset()+++# set up agent++prompt = (+ "Weng earns $12 an hour for babysitting. "+ "Yesterday, she just did 51 minutes of babysitting. How much did she earn?"+)+user_msg = BaseMessage.make_user_message(role_name="User", content=prompt)+print(Fore.YELLOW + f"user prompt:\n{prompt}\n")++response = agent.step(user_msg)+for msg in response.msgs:+ print_text_animated(Fore.GREEN + f"Agent response:\n{msg.content}\n")+++# ruff: noqa: E501+"""+Tools:+ignore_risk+execute_code+user prompt:+Weng earns $12 an hour for babysitting. Yesterday, she just did 51 minutes of babysitting. How much did she earn?++Risk assessment not passed for function execute_code.Score: 3 > Threshold: 2+Reason: The function 'execute_code' is designed to execute arbitrary code snippets, which inherently poses a significant risk. Although the provided code snippet appears harmless and simply calculates earnings based on hourly wage and minutes worked, the function itself allows for potentially dangerous operations if different code were to be executed. Therefore, the risk level is assessed as 3.+Ignoring risk for function execute_code: The code is a simple arithmetic calculation that poses no risk.+Agent response:+Weng earned $10.20 for 51 minutes of babysitting.+"""diff --git a/examples/runtime/docker_runtime.py b/examples/runtime/docker_runtime.pynew file mode 100644index 000000000..1c96e7184--- /dev/null+++ b/examples/runtime/docker_runtime.py@@ -0,0 +1,71 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from camel.runtime import DockerRuntime+from camel.toolkits import CodeExecutionToolkit, MathToolkit++if __name__ == "__main__":+ runtime = (+ DockerRuntime("xukunliu/camel") # change to your own docker image+ .add(MathToolkit().get_tools(), "camel.toolkits.MathToolkit")+ .add(+ CodeExecutionToolkit().get_tools(),+ "camel.toolkits.CodeExecutionToolkit",+ dict(verbose=True),+ )+ )++ with (+ runtime as r+ ): # using with statement to automatically close the runtime+ print("Waiting for runtime to be ready...")+ r.wait()+ print("Runtime is ready.")++ tools = r.get_tools()++ add, sub, mul = tools[:3]+ code_exec = tools[3]++ # without kwargs+ print(f"Add 1 + 2: {add.func(1, 2)}")+ print(f"Subtract 5 - 3: {sub.func(5, 3)}")+ print(f"Multiply 2 * 3: {mul.func(2, 3)}")+ print(f"Execute code: {code_exec.func('1 + 2')}")++ # with kwargs+ print(f"Add 1 + 2: {add.func(a=1, b=2)}")+ print(f"Subtract 5 - 3: {sub.func(a=5, b=3)}")+ print(f"Multiply 2 * 3: {mul.func(a=2, b=3)}")+ print(f"Execute code: {code_exec.func(code='1 + 2')}")++ print("Documents: ", r.docs)+ # you can open this url in browser to see the API Endpoints+ # before the runtime is stopped.++ # you can also use the runtime without the with statement+ # runtime.build()+ # runtime.stop()++"""+Add 1 + 2: 3+Subtract 5 - 3: 2+Multiply 2 * 3: 6+Execute code: Executed the code below:+```py+1 + 2+```+> Executed Results:+3+Documents: http://localhost:8000/docs+"""diff --git a/examples/runtime/docker_runtime_with_tasks.py b/examples/runtime/docker_runtime_with_tasks.pynew file mode 100644index 000000000..77b2f7852--- /dev/null+++ b/examples/runtime/docker_runtime_with_tasks.py@@ -0,0 +1,93 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========++from colorama import Fore++from camel.agents import ChatAgent+from camel.configs import ChatGPTConfig+from camel.messages import BaseMessage+from camel.models import ModelFactory+from camel.runtime import DockerRuntime, TaskConfig+from camel.toolkits.code_execution import CodeExecutionToolkit+from camel.types import ModelPlatformType, ModelType+from camel.utils import print_text_animated++# tools+toolkit = CodeExecutionToolkit(verbose=True)++runtime = (+ DockerRuntime("xukunliu/camel") # change to your own docker image+ .add(+ toolkit.get_tools(),+ "camel.toolkits.CodeExecutionToolkit",+ {"unsafe_mode": True, "import_white_list": ["os", "sys"]},+ True,+ )+ .add_task(+ TaskConfig(+ cmd="mkdir /home/test",+ )+ )+)++tools = runtime.get_tools()++# set up LLM model+assistant_model_config = ChatGPTConfig(+ temperature=0.0,+)++model = ModelFactory.create(+ model_platform=ModelPlatformType.DEFAULT,+ model_type=ModelType.DEFAULT,+ model_config_dict=assistant_model_config.as_dict(),+)+++# set up agent+assistant_sys_msg = BaseMessage.make_assistant_message(+ role_name="Teacher",+ content=(+ "You are a personal assistant and programmer. "+ "When asked a question, "+ "write and run Python code to answer the question."+ "Your code will be executed using eval()."+ ),+)++agent = ChatAgent(+ assistant_sys_msg,+ model,+ tools=tools,+)+agent.reset()+++# set up agent++with runtime as r:+ r.wait()+ prompt = "List all directories in /home"+ user_msg = BaseMessage.make_user_message(role_name="User", content=prompt)+ print(Fore.YELLOW + f"user prompt:\n{prompt}\n")++ response = agent.step(user_msg)+ for msg in response.msgs:+ print_text_animated(Fore.GREEN + f"Agent response:\n{msg.content}\n")+++# TODO: unlock unsafe mode+# This example can not be run in the current version of CAMEL because+# the InternalPythonInterpreter does not support+# most of the built-in functions.diff --git a/examples/runtime/remote_http_runtime.py b/examples/runtime/remote_http_runtime.pynew file mode 100644index 000000000..a56718ca3--- /dev/null+++ b/examples/runtime/remote_http_runtime.py@@ -0,0 +1,47 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from camel.runtime import RemoteHttpRuntime+from camel.toolkits import MathToolkit++if __name__ == "__main__":+ runtime = (+ RemoteHttpRuntime("localhost")+ .add(MathToolkit().get_tools(), "camel.toolkits.MathToolkit")+ .build()+ )+ print("Waiting for runtime to be ready...")+ runtime.wait()+ print("Runtime is ready.")+ add, sub, mul = runtime.get_tools()+ print(f"Add 1 + 2: {add.func(1, 2)}")+ print(f"Subtract 5 - 3: {sub.func(5, 3)}")+ print(f"Multiply 2 * 3: {mul.func(2, 3)}")++ print("Documents: ", runtime.docs)+ # you can open this url in browser to see the API Endpoints+ # before the runtime is stopped.+ # time.sleep(60)++ # call runtime.stop() if you want to stop the runtime manually+ # atherwise it will be stopped automatically when the program ends+++"""+Waiting for runtime to be ready...+Runtime is ready.+Add 1 + 2: 3+Subtract 5 - 3: 2+Multiply 2 * 3: 6+Documents: http://localhost:8000/docs+"""diff --git a/examples/toolkits/github_toolkit.py b/examples/toolkits/github_toolkit.pyindex 2c6c2132b..4ab9b2c66 100644--- a/examples/toolkits/github_toolkit.py+++ b/examples/toolkits/github_toolkit.py@@ -19,7 +19,7 @@ gt = GithubToolkit(repo_name="camel-ai/camel")# Retrieve a list of all file paths within the camel GitHub repositorypaths = gt.get_all_file_paths()print(paths)-'''+"""===============================================================================['.container/.env.example', '.container/Dockerfile', '.container/README.md', '.container/docker-compose.yaml', '.container/minimal_build/Dockerfile', '.@@ -43,12 +43,12 @@ requirements.txt', 'camel/__init__.py', 'camel/agents/__init__.py', 'camel/agents/base.py', 'camel/agents/chat_agent.py', 'camel/agents/critic_agent.py','camel/agents/deductive_reasoner_agent.py',...===============================================================================-'''+"""# Retrieve the content of a specific file in the repositorycontent = gt.retrieve_file_content("camel/agents/chat_agent.py")print(content[:1000])-'''+"""===============================================================================# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========# Licensed under the Apache License, Version 2.0 (the āLicenseā);@@ -84,4 +84,4 @@ from typing import (from openai.types.chat import ChatCompletionMessageToolCallf===============================================================================-'''+"""diff --git a/poetry.lock b/poetry.lockindex 117235c1c..d8cad3cd3 100644--- a/poetry.lock+++ b/poetry.lock@@ -95,87 +95,87 @@ files = [[[package]]name = "aiohttp"-version = "3.11.6"+version = "3.11.7"description = "Async http client/server framework (asyncio)"optional = truepython-versions = ">=3.9"files = [- {file = "aiohttp-3.11.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7510b3ca2275691875ddf072a5b6cd129278d11fe09301add7d292fc8d3432de"},- {file = "aiohttp-3.11.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bfab0d2c3380c588fc925168533edb21d3448ad76c3eadc360ff963019161724"},- {file = "aiohttp-3.11.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cf02dba0f342f3a8228f43fae256aafc21c4bc85bffcf537ce4582e2b1565188"},- {file = "aiohttp-3.11.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:92daedf7221392e7a7984915ca1b0481a94c71457c2f82548414a41d65555e70"},- {file = "aiohttp-3.11.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2274a7876e03429e3218589a6d3611a194bdce08c3f1e19962e23370b47c0313"},- {file = "aiohttp-3.11.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8a2e1eae2d2f62f3660a1591e16e543b2498358593a73b193006fb89ee37abc6"},- {file = "aiohttp-3.11.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:978ec3fb0a42efcd98aae608f58c6cfcececaf0a50b4e86ee3ea0d0a574ab73b"},- {file = "aiohttp-3.11.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a51f87b27d9219ed4e202ed8d6f1bb96f829e5eeff18db0d52f592af6de6bdbf"},- {file = "aiohttp-3.11.6-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:04d1a02a669d26e833c8099992c17f557e3b2fdb7960a0c455d7b1cbcb05121d"},- {file = "aiohttp-3.11.6-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3679d5fcbc7f1ab518ab4993f12f80afb63933f6afb21b9b272793d398303b98"},- {file = "aiohttp-3.11.6-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:a4b24e03d04893b5c8ec9cd5f2f11dc9c8695c4e2416d2ac2ce6c782e4e5ffa5"},- {file = "aiohttp-3.11.6-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:d9abdfd35ecff1c95f270b7606819a0e2de9e06fa86b15d9080de26594cf4c23"},- {file = "aiohttp-3.11.6-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8b5c3e7928a0ad80887a5eba1c1da1830512ddfe7394d805badda45c03db3109"},- {file = "aiohttp-3.11.6-cp310-cp310-win32.whl", hash = "sha256:913dd9e9378f3c38aeb5c4fb2b8383d6490bc43f3b427ae79f2870651ae08f22"},- {file = "aiohttp-3.11.6-cp310-cp310-win_amd64.whl", hash = "sha256:4ac26d482c2000c3a59bf757a77adc972828c9d4177b4bd432a46ba682ca7271"},- {file = "aiohttp-3.11.6-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:26ac4c960ea8debf557357a172b3ef201f2236a462aefa1bc17683a75483e518"},- {file = "aiohttp-3.11.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8b1f13ebc99fb98c7c13057b748f05224ccc36d17dee18136c695ef23faaf4ff"},- {file = "aiohttp-3.11.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4679f1a47516189fab1774f7e45a6c7cac916224c91f5f94676f18d0b64ab134"},- {file = "aiohttp-3.11.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:74491fdb3d140ff561ea2128cb7af9ba0a360067ee91074af899c9614f88a18f"},- {file = "aiohttp-3.11.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f51e1a90412d387e62aa2d243998c5eddb71373b199d811e6ed862a9f34f9758"},- {file = "aiohttp-3.11.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:72ab89510511c3bb703d0bb5504787b11e0ed8be928ed2a7cf1cda9280628430"},- {file = "aiohttp-3.11.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6681c9e046d99646e8059266688374a063da85b2e4c0ebfa078cda414905d080"},- {file = "aiohttp-3.11.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1a17f8a6d3ab72cbbd137e494d1a23fbd3ea973db39587941f32901bb3c5c350"},- {file = "aiohttp-3.11.6-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:867affc7612a314b95f74d93aac550ce0909bc6f0b6c658cc856890f4d326542"},- {file = "aiohttp-3.11.6-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:00d894ebd609d5a423acef885bd61e7f6a972153f99c5b3ea45fc01fe909196c"},- {file = "aiohttp-3.11.6-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:614c87be9d0d64477d1e4b663bdc5d1534fc0a7ebd23fb08347ab9fd5fe20fd7"},- {file = "aiohttp-3.11.6-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:533ed46cf772f28f3bffae81c0573d916a64dee590b5dfaa3f3d11491da05b95"},- {file = "aiohttp-3.11.6-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:589884cfbc09813afb1454816b45677e983442e146183143f988f7f5a040791a"},- {file = "aiohttp-3.11.6-cp311-cp311-win32.whl", hash = "sha256:1da63633ba921669eec3d7e080459d4ceb663752b3dafb2f31f18edd248d2170"},- {file = "aiohttp-3.11.6-cp311-cp311-win_amd64.whl", hash = "sha256:d778ddda09622e7d83095cc8051698a0084c155a1474bfee9bac27d8613dbc31"},- {file = "aiohttp-3.11.6-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:943a952df105a5305257984e7a1f5c2d0fd8564ff33647693c4d07eb2315446d"},- {file = "aiohttp-3.11.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d24ec28b7658970a1f1d98608d67f88376c7e503d9d45ff2ba1949c09f2b358c"},- {file = "aiohttp-3.11.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6720e809a660fdb9bec7c168c582e11cfedce339af0a5ca847a5d5b588dce826"},- {file = "aiohttp-3.11.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4252d30da0ada6e6841b325869c7ef5104b488e8dd57ec439892abbb8d7b3615"},- {file = "aiohttp-3.11.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f65f43ff01b238aa0b5c47962c83830a49577efe31bd37c1400c3d11d8a32835"},- {file = "aiohttp-3.11.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4dc5933f6c9b26404444d36babb650664f984b8e5fa0694540e7b7315d11a4ff"},- {file = "aiohttp-3.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5bf546ba0c029dfffc718c4b67748687fd4f341b07b7c8f1719d6a3a46164798"},- {file = "aiohttp-3.11.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c351d05bbeae30c088009c0bb3b17dda04fd854f91cc6196c448349cc98f71c3"},- {file = "aiohttp-3.11.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:10499079b063576fad1597898de3f9c0a2ce617c19cc7cd6b62fdcff6b408bf7"},- {file = "aiohttp-3.11.6-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:442ee82eda47dd59798d6866ce020fb8d02ea31ac9ac82b3d719ed349e6a9d52"},- {file = "aiohttp-3.11.6-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:86fce9127bc317119b34786d9e9ae8af4508a103158828a535f56d201da6ab19"},- {file = "aiohttp-3.11.6-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:973d26a5537ce5d050302eb3cd876457451745b1da0624cbb483217970e12567"},- {file = "aiohttp-3.11.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:532b8f038a4e001137d3600cea5d3439d1881df41bdf44d0f9651264d562fdf0"},- {file = "aiohttp-3.11.6-cp312-cp312-win32.whl", hash = "sha256:4863c59f748dbe147da82b389931f2a676aebc9d3419813ed5ca32d057c9cb32"},- {file = "aiohttp-3.11.6-cp312-cp312-win_amd64.whl", hash = "sha256:5d7f481f82c18ac1f7986e31ba6eea9be8b2e2c86f1ef035b6866179b6c5dd68"},- {file = "aiohttp-3.11.6-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:40f502350496ba4c6820816d3164f8a0297b9aa4e95d910da31beb189866a9df"},- {file = "aiohttp-3.11.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9072669b0bffb40f1f6977d0b5e8a296edc964f9cefca3a18e68649c214d0ce3"},- {file = "aiohttp-3.11.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:518160ecf4e6ffd61715bc9173da0925fcce44ae6c7ca3d3f098fe42585370fb"},- {file = "aiohttp-3.11.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f69cc1b45115ac44795b63529aa5caa9674be057f11271f65474127b24fc1ce6"},- {file = "aiohttp-3.11.6-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c6be90a6beced41653bda34afc891617c6d9e8276eef9c183f029f851f0a3c3d"},- {file = "aiohttp-3.11.6-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:00c22fe2486308770d22ef86242101d7b0f1e1093ce178f2358f860e5149a551"},- {file = "aiohttp-3.11.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2607ebb783e3aeefa017ec8f34b506a727e6b6ab2c4b037d65f0bc7151f4430a"},- {file = "aiohttp-3.11.6-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5f761d6819870c2a8537f75f3e2fc610b163150cefa01f9f623945840f601b2c"},- {file = "aiohttp-3.11.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e44d1bc6c88f5234115011842219ba27698a5f2deee245c963b180080572aaa2"},- {file = "aiohttp-3.11.6-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7e0cb6a1b1f499cb2aa0bab1c9f2169ad6913c735b7447e058e0c29c9e51c0b5"},- {file = "aiohttp-3.11.6-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a76b4d4ca34254dca066acff2120811e2a8183997c135fcafa558280f2cc53f3"},- {file = "aiohttp-3.11.6-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:69051c1e45fb18c0ae4d39a075532ff0b015982e7997f19eb5932eb4a3e05c17"},- {file = "aiohttp-3.11.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:aff2ed18274c0bfe0c1d772781c87d5ca97ae50f439729007cec9644ee9b15fe"},- {file = "aiohttp-3.11.6-cp313-cp313-win32.whl", hash = "sha256:2fbea25f2d44df809a46414a8baafa5f179d9dda7e60717f07bded56300589b3"},- {file = "aiohttp-3.11.6-cp313-cp313-win_amd64.whl", hash = "sha256:f77bc29a465c0f9f6573d1abe656d385fa673e34efe615bd4acc50899280ee47"},- {file = "aiohttp-3.11.6-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:de6123b298d17bca9e53581f50a275b36e10d98e8137eb743ce69ee766dbdfe9"},- {file = "aiohttp-3.11.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a10200f705f4fff00e148b7f41e5d1d929c7cd4ac523c659171a0ea8284cd6fb"},- {file = "aiohttp-3.11.6-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b7776ef6901b54dd557128d96c71e412eec0c39ebc07567e405ac98737995aad"},- {file = "aiohttp-3.11.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6e5c2a55583cd91936baf73d223807bb93ace6eb1fe54424782690f2707162ab"},- {file = "aiohttp-3.11.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b032bd6cf7422583bf44f233f4a1489fee53c6d35920123a208adc54e2aba41e"},- {file = "aiohttp-3.11.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:04fe2d99acbc5cf606f75d7347bf3a027c24c27bc052d470fb156f4cfcea5739"},- {file = "aiohttp-3.11.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84a79c366375c2250934d1238abe5d5ea7754c823a1c7df0c52bf0a2bfded6a9"},- {file = "aiohttp-3.11.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c33cbbe97dc94a34d1295a7bb68f82727bcbff2b284f73ae7e58ecc05903da97"},- {file = "aiohttp-3.11.6-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:19e4fb9ac727834b003338dcdd27dcfe0de4fb44082b01b34ed0ab67c3469fc9"},- {file = "aiohttp-3.11.6-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:a97f6b2afbe1d27220c0c14ea978e09fb4868f462ef3d56d810d206bd2e057a2"},- {file = "aiohttp-3.11.6-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:c3f7afeea03a9bc49be6053dfd30809cd442cc12627d6ca08babd1c1f9e04ccf"},- {file = "aiohttp-3.11.6-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:0d10967600ce5bb69ddcb3e18d84b278efb5199d8b24c3c71a4959c2f08acfd0"},- {file = "aiohttp-3.11.6-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:60f2f631b9fe7aa321fa0f0ff3f5d8b9f7f9b72afd4eecef61c33cf1cfea5d58"},- {file = "aiohttp-3.11.6-cp39-cp39-win32.whl", hash = "sha256:4d2b75333deb5c5f61bac5a48bba3dbc142eebbd3947d98788b6ef9cc48628ae"},- {file = "aiohttp-3.11.6-cp39-cp39-win_amd64.whl", hash = "sha256:8908c235421972a2e02abcef87d16084aabfe825d14cc9a1debd609b3cfffbea"},- {file = "aiohttp-3.11.6.tar.gz", hash = "sha256:fd9f55c1b51ae1c20a1afe7216a64a88d38afee063baa23c7fce03757023c999"},+ {file = "aiohttp-3.11.7-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8bedb1f6cb919af3b6353921c71281b1491f948ca64408871465d889b4ee1b66"},+ {file = "aiohttp-3.11.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f5022504adab881e2d801a88b748ea63f2a9d130e0b2c430824682a96f6534be"},+ {file = "aiohttp-3.11.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e22d1721c978a6494adc824e0916f9d187fa57baeda34b55140315fa2f740184"},+ {file = "aiohttp-3.11.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e993676c71288618eb07e20622572b1250d8713e7e00ab3aabae28cb70f3640d"},+ {file = "aiohttp-3.11.7-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e13a05db87d3b241c186d0936808d0e4e12decc267c617d54e9c643807e968b6"},+ {file = "aiohttp-3.11.7-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4ba8d043fed7ffa117024d7ba66fdea011c0e7602327c6d73cacaea38abe4491"},+ {file = "aiohttp-3.11.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dda3ed0a7869d2fa16aa41f9961ade73aa2c2e3b2fcb0a352524e7b744881889"},+ {file = "aiohttp-3.11.7-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:43bfd25113c1e98aec6c70e26d5f4331efbf4aa9037ba9ad88f090853bf64d7f"},+ {file = "aiohttp-3.11.7-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3dd3e7e7c9ef3e7214f014f1ae260892286647b3cf7c7f1b644a568fd410f8ca"},+ {file = "aiohttp-3.11.7-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:78c657ece7a73b976905ab9ec8be9ef2df12ed8984c24598a1791c58ce3b4ce4"},+ {file = "aiohttp-3.11.7-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:db70a47987e34494b451a334605bee57a126fe8d290511349e86810b4be53b01"},+ {file = "aiohttp-3.11.7-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:9e67531370a3b07e49b280c1f8c2df67985c790ad2834d1b288a2f13cd341c5f"},+ {file = "aiohttp-3.11.7-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9202f184cc0582b1db15056f2225ab4c1e3dac4d9ade50dd0613ac3c46352ac2"},+ {file = "aiohttp-3.11.7-cp310-cp310-win32.whl", hash = "sha256:2257bdd5cf54a4039a4337162cd8048f05a724380a2283df34620f55d4e29341"},+ {file = "aiohttp-3.11.7-cp310-cp310-win_amd64.whl", hash = "sha256:b7215bf2b53bc6cb35808149980c2ae80a4ae4e273890ac85459c014d5aa60ac"},+ {file = "aiohttp-3.11.7-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:cea52d11e02123f125f9055dfe0ccf1c3857225fb879e4a944fae12989e2aef2"},+ {file = "aiohttp-3.11.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3ce18f703b7298e7f7633efd6a90138d99a3f9a656cb52c1201e76cb5d79cf08"},+ {file = "aiohttp-3.11.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:670847ee6aeb3a569cd7cdfbe0c3bec1d44828bbfbe78c5d305f7f804870ef9e"},+ {file = "aiohttp-3.11.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4dda726f89bfa5c465ba45b76515135a3ece0088dfa2da49b8bb278f3bdeea12"},+ {file = "aiohttp-3.11.7-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c25b74a811dba37c7ea6a14d99eb9402d89c8d739d50748a75f3cf994cf19c43"},+ {file = "aiohttp-3.11.7-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5522ee72f95661e79db691310290c4618b86dff2d9b90baedf343fd7a08bf79"},+ {file = "aiohttp-3.11.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1fbf41a6bbc319a7816ae0f0177c265b62f2a59ad301a0e49b395746eb2a9884"},+ {file = "aiohttp-3.11.7-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:59ee1925b5a5efdf6c4e7be51deee93984d0ac14a6897bd521b498b9916f1544"},+ {file = "aiohttp-3.11.7-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:24054fce8c6d6f33a3e35d1c603ef1b91bbcba73e3f04a22b4f2f27dac59b347"},+ {file = "aiohttp-3.11.7-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:351849aca2c6f814575c1a485c01c17a4240413f960df1bf9f5deb0003c61a53"},+ {file = "aiohttp-3.11.7-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:12724f3a211fa243570e601f65a8831372caf1a149d2f1859f68479f07efec3d"},+ {file = "aiohttp-3.11.7-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:7ea4490360b605804bea8173d2d086b6c379d6bb22ac434de605a9cbce006e7d"},+ {file = "aiohttp-3.11.7-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e0bf378db07df0a713a1e32381a1b277e62ad106d0dbe17b5479e76ec706d720"},+ {file = "aiohttp-3.11.7-cp311-cp311-win32.whl", hash = "sha256:cd8d62cab363dfe713067027a5adb4907515861f1e4ce63e7be810b83668b847"},+ {file = "aiohttp-3.11.7-cp311-cp311-win_amd64.whl", hash = "sha256:bf0e6cce113596377cadda4e3ac5fb89f095bd492226e46d91b4baef1dd16f60"},+ {file = "aiohttp-3.11.7-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:4bb7493c3e3a36d3012b8564bd0e2783259ddd7ef3a81a74f0dbfa000fce48b7"},+ {file = "aiohttp-3.11.7-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:e143b0ef9cb1a2b4f74f56d4fbe50caa7c2bb93390aff52f9398d21d89bc73ea"},+ {file = "aiohttp-3.11.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f7c58a240260822dc07f6ae32a0293dd5bccd618bb2d0f36d51c5dbd526f89c0"},+ {file = "aiohttp-3.11.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d20cfe63a1c135d26bde8c1d0ea46fd1200884afbc523466d2f1cf517d1fe33"},+ {file = "aiohttp-3.11.7-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12e4d45847a174f77b2b9919719203769f220058f642b08504cf8b1cf185dacf"},+ {file = "aiohttp-3.11.7-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cf4efa2d01f697a7dbd0509891a286a4af0d86902fc594e20e3b1712c28c0106"},+ {file = "aiohttp-3.11.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ee6a4cdcbf54b8083dc9723cdf5f41f722c00db40ccf9ec2616e27869151129"},+ {file = "aiohttp-3.11.7-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c6095aaf852c34f42e1bd0cf0dc32d1e4b48a90bfb5054abdbb9d64b36acadcb"},+ {file = "aiohttp-3.11.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1cf03d27885f8c5ebf3993a220cc84fc66375e1e6e812731f51aab2b2748f4a6"},+ {file = "aiohttp-3.11.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:1a17f6a230f81eb53282503823f59d61dff14fb2a93847bf0399dc8e87817307"},+ {file = "aiohttp-3.11.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:481f10a1a45c5f4c4a578bbd74cff22eb64460a6549819242a87a80788461fba"},+ {file = "aiohttp-3.11.7-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:db37248535d1ae40735d15bdf26ad43be19e3d93ab3f3dad8507eb0f85bb8124"},+ {file = "aiohttp-3.11.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9d18a8b44ec8502a7fde91446cd9c9b95ce7c49f1eacc1fb2358b8907d4369fd"},+ {file = "aiohttp-3.11.7-cp312-cp312-win32.whl", hash = "sha256:3d1c9c15d3999107cbb9b2d76ca6172e6710a12fda22434ee8bd3f432b7b17e8"},+ {file = "aiohttp-3.11.7-cp312-cp312-win_amd64.whl", hash = "sha256:018f1b04883a12e77e7fc161934c0f298865d3a484aea536a6a2ca8d909f0ba0"},+ {file = "aiohttp-3.11.7-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:241a6ca732d2766836d62c58c49ca7a93d08251daef0c1e3c850df1d1ca0cbc4"},+ {file = "aiohttp-3.11.7-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:aa3705a8d14de39898da0fbad920b2a37b7547c3afd2a18b9b81f0223b7d0f68"},+ {file = "aiohttp-3.11.7-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9acfc7f652b31853eed3b92095b0acf06fd5597eeea42e939bd23a17137679d5"},+ {file = "aiohttp-3.11.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcefcf2915a2dbdbce37e2fc1622129a1918abfe3d06721ce9f6cdac9b6d2eaa"},+ {file = "aiohttp-3.11.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c1f6490dd1862af5aae6cfcf2a274bffa9a5b32a8f5acb519a7ecf5a99a88866"},+ {file = "aiohttp-3.11.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f1ac5462582d6561c1c1708853a9faf612ff4e5ea5e679e99be36143d6eabd8e"},+ {file = "aiohttp-3.11.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c1a6309005acc4b2bcc577ba3b9169fea52638709ffacbd071f3503264620da"},+ {file = "aiohttp-3.11.7-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f5b973cce96793725ef63eb449adfb74f99c043c718acb76e0d2a447ae369962"},+ {file = "aiohttp-3.11.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ce91a24aac80de6be8512fb1c4838a9881aa713f44f4e91dd7bb3b34061b497d"},+ {file = "aiohttp-3.11.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:875f7100ce0e74af51d4139495eec4025affa1a605280f23990b6434b81df1bd"},+ {file = "aiohttp-3.11.7-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c171fc35d3174bbf4787381716564042a4cbc008824d8195eede3d9b938e29a8"},+ {file = "aiohttp-3.11.7-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:ee9afa1b0d2293c46954f47f33e150798ad68b78925e3710044e0d67a9487791"},+ {file = "aiohttp-3.11.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8360c7cc620abb320e1b8d603c39095101391a82b1d0be05fb2225471c9c5c52"},+ {file = "aiohttp-3.11.7-cp313-cp313-win32.whl", hash = "sha256:7a9318da4b4ada9a67c1dd84d1c0834123081e746bee311a16bb449f363d965e"},+ {file = "aiohttp-3.11.7-cp313-cp313-win_amd64.whl", hash = "sha256:fc6da202068e0a268e298d7cd09b6e9f3997736cd9b060e2750963754552a0a9"},+ {file = "aiohttp-3.11.7-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:17829f37c0d31d89aa6b8b010475a10233774771f9b6dc2cc352ea4f8ce95d9a"},+ {file = "aiohttp-3.11.7-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d6177077a31b1aecfc3c9070bd2f11419dbb4a70f30f4c65b124714f525c2e48"},+ {file = "aiohttp-3.11.7-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:badda65ac99555791eed75e234afb94686ed2317670c68bff8a4498acdaee935"},+ {file = "aiohttp-3.11.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0de6466b9d742b4ee56fe1b2440706e225eb48c77c63152b1584864a236e7a50"},+ {file = "aiohttp-3.11.7-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:04b0cc74d5a882c9dacaeeccc1444f0233212b6f5be8bc90833feef1e1ce14b9"},+ {file = "aiohttp-3.11.7-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c7af3e50e5903d21d7b935aceed901cc2475463bc16ddd5587653548661fdb"},+ {file = "aiohttp-3.11.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c63f898f683d1379b9be5afc3dd139e20b30b0b1e0bf69a3fc3681f364cf1629"},+ {file = "aiohttp-3.11.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fdadc3f6a32d6eca45f9a900a254757fd7855dfb2d8f8dcf0e88f0fae3ff8eb1"},+ {file = "aiohttp-3.11.7-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:d329300fb23e14ed1f8c6d688dfd867d1dcc3b1d7cd49b7f8c5b44e797ce0932"},+ {file = "aiohttp-3.11.7-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:5578cf40440eafcb054cf859964bc120ab52ebe0e0562d2b898126d868749629"},+ {file = "aiohttp-3.11.7-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:7b2f8107a3c329789f3c00b2daad0e35f548d0a55cda6291579136622099a46e"},+ {file = "aiohttp-3.11.7-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:43dd89a6194f6ab02a3fe36b09e42e2df19c211fc2050ce37374d96f39604997"},+ {file = "aiohttp-3.11.7-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:d2fa6fc7cc865d26ff42480ac9b52b8c9b7da30a10a6442a9cdf429de840e949"},+ {file = "aiohttp-3.11.7-cp39-cp39-win32.whl", hash = "sha256:a7d9a606355655617fee25dd7e54d3af50804d002f1fd3118dd6312d26692d70"},+ {file = "aiohttp-3.11.7-cp39-cp39-win_amd64.whl", hash = "sha256:53c921b58fdc6485d6b2603e0132bb01cd59b8f0620ffc0907f525e0ba071687"},+ {file = "aiohttp-3.11.7.tar.gz", hash = "sha256:01a8aca4af3da85cea5c90141d23f4b0eee3cbecfd33b029a45a80f28c66c668"},][package.dependencies]@@ -665,13 +665,13 @@ css = ["tinycss2 (>=1.1.0,<1.5)"][[package]]name = "botocore"-version = "1.35.66"+version = "1.35.67"description = "Low-level, data-driven core of boto 3."optional = truepython-versions = ">=3.8"files = [- {file = "botocore-1.35.66-py3-none-any.whl", hash = "sha256:d0683e9c18bb6852f768da268086c3749d925332a664db0dd1459cfa7e96e475"},- {file = "botocore-1.35.66.tar.gz", hash = "sha256:51f43220315f384959f02ea3266740db4d421592dd87576c18824e424b349fdb"},+ {file = "botocore-1.35.67-py3-none-any.whl", hash = "sha256:c83983c196b4452dd7f298e68a9a224bc8fd58075b60133532848813826611af"},+ {file = "botocore-1.35.67.tar.gz", hash = "sha256:d782e02f2949889cf97a140a89cd5e9363d0e4b0153db51faf7fc16305c6e0e1"},][package.dependencies]@@ -1347,37 +1347,37 @@ vision = ["Pillow (>=6.2.1)"][[package]]name = "debugpy"-version = "1.8.8"+version = "1.8.9"description = "An implementation of the Debug Adapter Protocol for Python"optional = truepython-versions = ">=3.8"files = [- {file = "debugpy-1.8.8-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:e59b1607c51b71545cb3496876544f7186a7a27c00b436a62f285603cc68d1c6"},- {file = "debugpy-1.8.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6531d952b565b7cb2fbd1ef5df3d333cf160b44f37547a4e7cf73666aca5d8d"},- {file = "debugpy-1.8.8-cp310-cp310-win32.whl", hash = "sha256:b01f4a5e5c5fb1d34f4ccba99a20ed01eabc45a4684f4948b5db17a319dfb23f"},- {file = "debugpy-1.8.8-cp310-cp310-win_amd64.whl", hash = "sha256:535f4fb1c024ddca5913bb0eb17880c8f24ba28aa2c225059db145ee557035e9"},- {file = "debugpy-1.8.8-cp311-cp311-macosx_14_0_universal2.whl", hash = "sha256:c399023146e40ae373753a58d1be0a98bf6397fadc737b97ad612886b53df318"},- {file = "debugpy-1.8.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:09cc7b162586ea2171eea055985da2702b0723f6f907a423c9b2da5996ad67ba"},- {file = "debugpy-1.8.8-cp311-cp311-win32.whl", hash = "sha256:eea8821d998ebeb02f0625dd0d76839ddde8cbf8152ebbe289dd7acf2cdc6b98"},- {file = "debugpy-1.8.8-cp311-cp311-win_amd64.whl", hash = "sha256:d4483836da2a533f4b1454dffc9f668096ac0433de855f0c22cdce8c9f7e10c4"},- {file = "debugpy-1.8.8-cp312-cp312-macosx_14_0_universal2.whl", hash = "sha256:0cc94186340be87b9ac5a707184ec8f36547fb66636d1029ff4f1cc020e53996"},- {file = "debugpy-1.8.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64674e95916e53c2e9540a056e5f489e0ad4872645399d778f7c598eacb7b7f9"},- {file = "debugpy-1.8.8-cp312-cp312-win32.whl", hash = "sha256:5c6e885dbf12015aed73770f29dec7023cb310d0dc2ba8bfbeb5c8e43f80edc9"},- {file = "debugpy-1.8.8-cp312-cp312-win_amd64.whl", hash = "sha256:19ffbd84e757a6ca0113574d1bf5a2298b3947320a3e9d7d8dc3377f02d9f864"},- {file = "debugpy-1.8.8-cp313-cp313-macosx_14_0_universal2.whl", hash = "sha256:705cd123a773d184860ed8dae99becd879dfec361098edbefb5fc0d3683eb804"},- {file = "debugpy-1.8.8-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:890fd16803f50aa9cb1a9b9b25b5ec321656dd6b78157c74283de241993d086f"},- {file = "debugpy-1.8.8-cp313-cp313-win32.whl", hash = "sha256:90244598214bbe704aa47556ec591d2f9869ff9e042e301a2859c57106649add"},- {file = "debugpy-1.8.8-cp313-cp313-win_amd64.whl", hash = "sha256:4b93e4832fd4a759a0c465c967214ed0c8a6e8914bced63a28ddb0dd8c5f078b"},- {file = "debugpy-1.8.8-cp38-cp38-macosx_14_0_x86_64.whl", hash = "sha256:143ef07940aeb8e7316de48f5ed9447644da5203726fca378f3a6952a50a9eae"},- {file = "debugpy-1.8.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f95651bdcbfd3b27a408869a53fbefcc2bcae13b694daee5f1365b1b83a00113"},- {file = "debugpy-1.8.8-cp38-cp38-win32.whl", hash = "sha256:26b461123a030e82602a750fb24d7801776aa81cd78404e54ab60e8b5fecdad5"},- {file = "debugpy-1.8.8-cp38-cp38-win_amd64.whl", hash = "sha256:f3cbf1833e644a3100eadb6120f25be8a532035e8245584c4f7532937edc652a"},- {file = "debugpy-1.8.8-cp39-cp39-macosx_14_0_x86_64.whl", hash = "sha256:53709d4ec586b525724819dc6af1a7703502f7e06f34ded7157f7b1f963bb854"},- {file = "debugpy-1.8.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a9c013077a3a0000e83d97cf9cc9328d2b0bbb31f56b0e99ea3662d29d7a6a2"},- {file = "debugpy-1.8.8-cp39-cp39-win32.whl", hash = "sha256:ffe94dd5e9a6739a75f0b85316dc185560db3e97afa6b215628d1b6a17561cb2"},- {file = "debugpy-1.8.8-cp39-cp39-win_amd64.whl", hash = "sha256:5c0e5a38c7f9b481bf31277d2f74d2109292179081f11108e668195ef926c0f9"},- {file = "debugpy-1.8.8-py2.py3-none-any.whl", hash = "sha256:ec684553aba5b4066d4de510859922419febc710df7bba04fe9e7ef3de15d34f"},- {file = "debugpy-1.8.8.zip", hash = "sha256:e6355385db85cbd666be703a96ab7351bc9e6c61d694893206f8001e22aee091"},+ {file = "debugpy-1.8.9-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:cfe1e6c6ad7178265f74981edf1154ffce97b69005212fbc90ca22ddfe3d017e"},+ {file = "debugpy-1.8.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7fb65102a4d2c9ab62e8908e9e9f12aed9d76ef44880367bc9308ebe49a0f"},+ {file = "debugpy-1.8.9-cp310-cp310-win32.whl", hash = "sha256:c36856343cbaa448171cba62a721531e10e7ffb0abff838004701454149bc037"},+ {file = "debugpy-1.8.9-cp310-cp310-win_amd64.whl", hash = "sha256:17c5e0297678442511cf00a745c9709e928ea4ca263d764e90d233208889a19e"},+ {file = "debugpy-1.8.9-cp311-cp311-macosx_14_0_universal2.whl", hash = "sha256:b74a49753e21e33e7cf030883a92fa607bddc4ede1aa4145172debc637780040"},+ {file = "debugpy-1.8.9-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:62d22dacdb0e296966d7d74a7141aaab4bec123fa43d1a35ddcb39bf9fd29d70"},+ {file = "debugpy-1.8.9-cp311-cp311-win32.whl", hash = "sha256:8138efff315cd09b8dcd14226a21afda4ca582284bf4215126d87342bba1cc66"},+ {file = "debugpy-1.8.9-cp311-cp311-win_amd64.whl", hash = "sha256:ff54ef77ad9f5c425398efb150239f6fe8e20c53ae2f68367eba7ece1e96226d"},+ {file = "debugpy-1.8.9-cp312-cp312-macosx_14_0_universal2.whl", hash = "sha256:957363d9a7a6612a37458d9a15e72d03a635047f946e5fceee74b50d52a9c8e2"},+ {file = "debugpy-1.8.9-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e565fc54b680292b418bb809f1386f17081d1346dca9a871bf69a8ac4071afe"},+ {file = "debugpy-1.8.9-cp312-cp312-win32.whl", hash = "sha256:3e59842d6c4569c65ceb3751075ff8d7e6a6ada209ceca6308c9bde932bcef11"},+ {file = "debugpy-1.8.9-cp312-cp312-win_amd64.whl", hash = "sha256:66eeae42f3137eb428ea3a86d4a55f28da9bd5a4a3d369ba95ecc3a92c1bba53"},+ {file = "debugpy-1.8.9-cp313-cp313-macosx_14_0_universal2.whl", hash = "sha256:957ecffff80d47cafa9b6545de9e016ae8c9547c98a538ee96ab5947115fb3dd"},+ {file = "debugpy-1.8.9-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1efbb3ff61487e2c16b3e033bc8595aea578222c08aaf3c4bf0f93fadbd662ee"},+ {file = "debugpy-1.8.9-cp313-cp313-win32.whl", hash = "sha256:7c4d65d03bee875bcb211c76c1d8f10f600c305dbd734beaed4077e902606fee"},+ {file = "debugpy-1.8.9-cp313-cp313-win_amd64.whl", hash = "sha256:e46b420dc1bea64e5bbedd678148be512442bc589b0111bd799367cde051e71a"},+ {file = "debugpy-1.8.9-cp38-cp38-macosx_14_0_x86_64.whl", hash = "sha256:472a3994999fe6c0756945ffa359e9e7e2d690fb55d251639d07208dbc37caea"},+ {file = "debugpy-1.8.9-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:365e556a4772d7d0d151d7eb0e77ec4db03bcd95f26b67b15742b88cacff88e9"},+ {file = "debugpy-1.8.9-cp38-cp38-win32.whl", hash = "sha256:54a7e6d3014c408eb37b0b06021366ee985f1539e12fe49ca2ee0d392d9ceca5"},+ {file = "debugpy-1.8.9-cp38-cp38-win_amd64.whl", hash = "sha256:8e99c0b1cc7bf86d83fb95d5ccdc4ad0586d4432d489d1f54e4055bcc795f693"},+ {file = "debugpy-1.8.9-cp39-cp39-macosx_14_0_x86_64.whl", hash = "sha256:7e8b079323a56f719977fde9d8115590cb5e7a1cba2fcee0986ef8817116e7c1"},+ {file = "debugpy-1.8.9-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6953b335b804a41f16a192fa2e7851bdcfd92173cbb2f9f777bb934f49baab65"},+ {file = "debugpy-1.8.9-cp39-cp39-win32.whl", hash = "sha256:7e646e62d4602bb8956db88b1e72fe63172148c1e25c041e03b103a25f36673c"},+ {file = "debugpy-1.8.9-cp39-cp39-win_amd64.whl", hash = "sha256:3d9755e77a2d680ce3d2c5394a444cf42be4a592caaf246dbfbdd100ffcf7ae5"},+ {file = "debugpy-1.8.9-py2.py3-none-any.whl", hash = "sha256:cc37a6c9987ad743d9c3a14fa1b1a14b7e4e6041f9dd0c8abf8895fe7a97b899"},+ {file = "debugpy-1.8.9.zip", hash = "sha256:1339e14c7d980407248f09824d1b25ff5c5616651689f1e0f0e51bdead3ea13e"},][[package]]@@ -8696,22 +8696,22 @@ scipy = ["scipy"][[package]]name = "tornado"-version = "6.4.1"+version = "6.4.2"description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed."optional = falsepython-versions = ">=3.8"files = [- {file = "tornado-6.4.1-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:163b0aafc8e23d8cdc3c9dfb24c5368af84a81e3364745ccb4427669bf84aec8"},- {file = "tornado-6.4.1-cp38-abi3-macosx_10_9_x86_64.whl", hash = "sha256:6d5ce3437e18a2b66fbadb183c1d3364fb03f2be71299e7d10dbeeb69f4b2a14"},- {file = "tornado-6.4.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2e20b9113cd7293f164dc46fffb13535266e713cdb87bd2d15ddb336e96cfc4"},- {file = "tornado-6.4.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8ae50a504a740365267b2a8d1a90c9fbc86b780a39170feca9bcc1787ff80842"},- {file = "tornado-6.4.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:613bf4ddf5c7a95509218b149b555621497a6cc0d46ac341b30bd9ec19eac7f3"},- {file = "tornado-6.4.1-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25486eb223babe3eed4b8aecbac33b37e3dd6d776bc730ca14e1bf93888b979f"},- {file = "tornado-6.4.1-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:454db8a7ecfcf2ff6042dde58404164d969b6f5d58b926da15e6b23817950fc4"},- {file = "tornado-6.4.1-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a02a08cc7a9314b006f653ce40483b9b3c12cda222d6a46d4ac63bb6c9057698"},- {file = "tornado-6.4.1-cp38-abi3-win32.whl", hash = "sha256:d9a566c40b89757c9aa8e6f032bcdb8ca8795d7c1a9762910c722b1635c9de4d"},- {file = "tornado-6.4.1-cp38-abi3-win_amd64.whl", hash = "sha256:b24b8982ed444378d7f21d563f4180a2de31ced9d8d84443907a0a64da2072e7"},- {file = "tornado-6.4.1.tar.gz", hash = "sha256:92d3ab53183d8c50f8204a51e6f91d18a15d5ef261e84d452800d4ff6fc504e9"},+ {file = "tornado-6.4.2-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:e828cce1123e9e44ae2a50a9de3055497ab1d0aeb440c5ac23064d9e44880da1"},+ {file = "tornado-6.4.2-cp38-abi3-macosx_10_9_x86_64.whl", hash = "sha256:072ce12ada169c5b00b7d92a99ba089447ccc993ea2143c9ede887e0937aa803"},+ {file = "tornado-6.4.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a017d239bd1bb0919f72af256a970624241f070496635784d9bf0db640d3fec"},+ {file = "tornado-6.4.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c36e62ce8f63409301537222faffcef7dfc5284f27eec227389f2ad11b09d946"},+ {file = "tornado-6.4.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bca9eb02196e789c9cb5c3c7c0f04fb447dc2adffd95265b2c7223a8a615ccbf"},+ {file = "tornado-6.4.2-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:304463bd0772442ff4d0f5149c6f1c2135a1fae045adf070821c6cdc76980634"},+ {file = "tornado-6.4.2-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:c82c46813ba483a385ab2a99caeaedf92585a1f90defb5693351fa7e4ea0bf73"},+ {file = "tornado-6.4.2-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:932d195ca9015956fa502c6b56af9eb06106140d844a335590c1ec7f5277d10c"},+ {file = "tornado-6.4.2-cp38-abi3-win32.whl", hash = "sha256:2876cef82e6c5978fde1e0d5b1f919d756968d5b4282418f3146b79b58556482"},+ {file = "tornado-6.4.2-cp38-abi3-win_amd64.whl", hash = "sha256:908b71bf3ff37d81073356a5fadcc660eb10c1476ee6e2725588626ce7e5ca38"},+ {file = "tornado-6.4.2.tar.gz", hash = "sha256:92bad5b4746e9879fd7bf1eb21dce4e3fc5128d71601f80005afa39237ad620b"},][[package]]@@ -9809,93 +9809,93 @@ files = [[[package]]name = "yarl"-version = "1.17.2"+version = "1.18.0"description = "Yet another URL library"optional = truepython-versions = ">=3.9"files = [- {file = "yarl-1.17.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:93771146ef048b34201bfa382c2bf74c524980870bb278e6df515efaf93699ff"},- {file = "yarl-1.17.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8281db240a1616af2f9c5f71d355057e73a1409c4648c8949901396dc0a3c151"},- {file = "yarl-1.17.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:170ed4971bf9058582b01a8338605f4d8c849bd88834061e60e83b52d0c76870"},- {file = "yarl-1.17.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc61b005f6521fcc00ca0d1243559a5850b9dd1e1fe07b891410ee8fe192d0c0"},- {file = "yarl-1.17.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:871e1b47eec7b6df76b23c642a81db5dd6536cbef26b7e80e7c56c2fd371382e"},- {file = "yarl-1.17.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3a58a2f2ca7aaf22b265388d40232f453f67a6def7355a840b98c2d547bd037f"},- {file = "yarl-1.17.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:736bb076f7299c5c55dfef3eb9e96071a795cb08052822c2bb349b06f4cb2e0a"},- {file = "yarl-1.17.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8fd51299e21da709eabcd5b2dd60e39090804431292daacbee8d3dabe39a6bc0"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:358dc7ddf25e79e1cc8ee16d970c23faee84d532b873519c5036dbb858965795"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:50d866f7b1a3f16f98603e095f24c0eeba25eb508c85a2c5939c8b3870ba2df8"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:8b9c4643e7d843a0dca9cd9d610a0876e90a1b2cbc4c5ba7930a0d90baf6903f"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:d63123bfd0dce5f91101e77c8a5427c3872501acece8c90df457b486bc1acd47"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:4e76381be3d8ff96a4e6c77815653063e87555981329cf8f85e5be5abf449021"},- {file = "yarl-1.17.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:734144cd2bd633a1516948e477ff6c835041c0536cef1d5b9a823ae29899665b"},- {file = "yarl-1.17.2-cp310-cp310-win32.whl", hash = "sha256:26bfb6226e0c157af5da16d2d62258f1ac578d2899130a50433ffee4a5dfa673"},- {file = "yarl-1.17.2-cp310-cp310-win_amd64.whl", hash = "sha256:76499469dcc24759399accd85ec27f237d52dec300daaca46a5352fcbebb1071"},- {file = "yarl-1.17.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:792155279dc093839e43f85ff7b9b6493a8eaa0af1f94f1f9c6e8f4de8c63500"},- {file = "yarl-1.17.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38bc4ed5cae853409cb193c87c86cd0bc8d3a70fd2268a9807217b9176093ac6"},- {file = "yarl-1.17.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a8c83f6fcdc327783bdc737e8e45b2e909b7bd108c4da1892d3bc59c04a6d84"},- {file = "yarl-1.17.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c6d5fed96f0646bfdf698b0a1cebf32b8aae6892d1bec0c5d2d6e2df44e1e2d"},- {file = "yarl-1.17.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:782ca9c58f5c491c7afa55518542b2b005caedaf4685ec814fadfcee51f02493"},- {file = "yarl-1.17.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ff6af03cac0d1a4c3c19e5dcc4c05252411bf44ccaa2485e20d0a7c77892ab6e"},- {file = "yarl-1.17.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6a3f47930fbbed0f6377639503848134c4aa25426b08778d641491131351c2c8"},- {file = "yarl-1.17.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d1fa68a3c921365c5745b4bd3af6221ae1f0ea1bf04b69e94eda60e57958907f"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:187df91395c11e9f9dc69b38d12406df85aa5865f1766a47907b1cc9855b6303"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:93d1c8cc5bf5df401015c5e2a3ce75a5254a9839e5039c881365d2a9dcfc6dc2"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:11d86c6145ac5c706c53d484784cf504d7d10fa407cb73b9d20f09ff986059ef"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c42774d1d1508ec48c3ed29e7b110e33f5e74a20957ea16197dbcce8be6b52ba"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:0c8e589379ef0407b10bed16cc26e7392ef8f86961a706ade0a22309a45414d7"},- {file = "yarl-1.17.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1056cadd5e850a1c026f28e0704ab0a94daaa8f887ece8dfed30f88befb87bb0"},- {file = "yarl-1.17.2-cp311-cp311-win32.whl", hash = "sha256:be4c7b1c49d9917c6e95258d3d07f43cfba2c69a6929816e77daf322aaba6628"},- {file = "yarl-1.17.2-cp311-cp311-win_amd64.whl", hash = "sha256:ac8eda86cc75859093e9ce390d423aba968f50cf0e481e6c7d7d63f90bae5c9c"},- {file = "yarl-1.17.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:dd90238d3a77a0e07d4d6ffdebc0c21a9787c5953a508a2231b5f191455f31e9"},- {file = "yarl-1.17.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c74f0b0472ac40b04e6d28532f55cac8090e34c3e81f118d12843e6df14d0909"},- {file = "yarl-1.17.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4d486ddcaca8c68455aa01cf53d28d413fb41a35afc9f6594a730c9779545876"},- {file = "yarl-1.17.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f25b7e93f5414b9a983e1a6c1820142c13e1782cc9ed354c25e933aebe97fcf2"},- {file = "yarl-1.17.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3a0baff7827a632204060f48dca9e63fbd6a5a0b8790c1a2adfb25dc2c9c0d50"},- {file = "yarl-1.17.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:460024cacfc3246cc4d9f47a7fc860e4fcea7d1dc651e1256510d8c3c9c7cde0"},- {file = "yarl-1.17.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5870d620b23b956f72bafed6a0ba9a62edb5f2ef78a8849b7615bd9433384171"},- {file = "yarl-1.17.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2941756754a10e799e5b87e2319bbec481ed0957421fba0e7b9fb1c11e40509f"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9611b83810a74a46be88847e0ea616794c406dbcb4e25405e52bff8f4bee2d0a"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cd7e35818d2328b679a13268d9ea505c85cd773572ebb7a0da7ccbca77b6a52e"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:6b981316fcd940f085f646b822c2ff2b8b813cbd61281acad229ea3cbaabeb6b"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:688058e89f512fb7541cb85c2f149c292d3fa22f981d5a5453b40c5da49eb9e8"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:56afb44a12b0864d17b597210d63a5b88915d680f6484d8d202ed68ade38673d"},- {file = "yarl-1.17.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:17931dfbb84ae18b287279c1f92b76a3abcd9a49cd69b92e946035cff06bcd20"},- {file = "yarl-1.17.2-cp312-cp312-win32.whl", hash = "sha256:ff8d95e06546c3a8c188f68040e9d0360feb67ba8498baf018918f669f7bc39b"},- {file = "yarl-1.17.2-cp312-cp312-win_amd64.whl", hash = "sha256:4c840cc11163d3c01a9d8aad227683c48cd3e5be5a785921bcc2a8b4b758c4f3"},- {file = "yarl-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:3294f787a437cb5d81846de3a6697f0c35ecff37a932d73b1fe62490bef69211"},- {file = "yarl-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f1e7fedb09c059efee2533119666ca7e1a2610072076926fa028c2ba5dfeb78c"},- {file = "yarl-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:da9d3061e61e5ae3f753654813bc1cd1c70e02fb72cf871bd6daf78443e9e2b1"},- {file = "yarl-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91c012dceadc695ccf69301bfdccd1fc4472ad714fe2dd3c5ab4d2046afddf29"},- {file = "yarl-1.17.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f11fd61d72d93ac23718d393d2a64469af40be2116b24da0a4ca6922df26807e"},- {file = "yarl-1.17.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:46c465ad06971abcf46dd532f77560181387b4eea59084434bdff97524444032"},- {file = "yarl-1.17.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ef6eee1a61638d29cd7c85f7fd3ac7b22b4c0fabc8fd00a712b727a3e73b0685"},- {file = "yarl-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4434b739a8a101a837caeaa0137e0e38cb4ea561f39cb8960f3b1e7f4967a3fc"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:752485cbbb50c1e20908450ff4f94217acba9358ebdce0d8106510859d6eb19a"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:17791acaa0c0f89323c57da7b9a79f2174e26d5debbc8c02d84ebd80c2b7bff8"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:5c6ea72fe619fee5e6b5d4040a451d45d8175f560b11b3d3e044cd24b2720526"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:db5ac3871ed76340210fe028f535392f097fb31b875354bcb69162bba2632ef4"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:7a1606ba68e311576bcb1672b2a1543417e7e0aa4c85e9e718ba6466952476c0"},- {file = "yarl-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9bc27dd5cfdbe3dc7f381b05e6260ca6da41931a6e582267d5ca540270afeeb2"},- {file = "yarl-1.17.2-cp313-cp313-win32.whl", hash = "sha256:52492b87d5877ec405542f43cd3da80bdcb2d0c2fbc73236526e5f2c28e6db28"},- {file = "yarl-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:8e1bf59e035534ba4077f5361d8d5d9194149f9ed4f823d1ee29ef3e8964ace3"},- {file = "yarl-1.17.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c556fbc6820b6e2cda1ca675c5fa5589cf188f8da6b33e9fc05b002e603e44fa"},- {file = "yarl-1.17.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f2f44a4247461965fed18b2573f3a9eb5e2c3cad225201ee858726cde610daca"},- {file = "yarl-1.17.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3a3ede8c248f36b60227eb777eac1dbc2f1022dc4d741b177c4379ca8e75571a"},- {file = "yarl-1.17.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2654caaf5584449d49c94a6b382b3cb4a246c090e72453493ea168b931206a4d"},- {file = "yarl-1.17.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0d41c684f286ce41fa05ab6af70f32d6da1b6f0457459a56cf9e393c1c0b2217"},- {file = "yarl-1.17.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2270d590997445a0dc29afa92e5534bfea76ba3aea026289e811bf9ed4b65a7f"},- {file = "yarl-1.17.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18662443c6c3707e2fc7fad184b4dc32dd428710bbe72e1bce7fe1988d4aa654"},- {file = "yarl-1.17.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:75ac158560dec3ed72f6d604c81090ec44529cfb8169b05ae6fcb3e986b325d9"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1fee66b32e79264f428dc8da18396ad59cc48eef3c9c13844adec890cd339db5"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:585ce7cd97be8f538345de47b279b879e091c8b86d9dbc6d98a96a7ad78876a3"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:c019abc2eca67dfa4d8fb72ba924871d764ec3c92b86d5b53b405ad3d6aa56b0"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:c6e659b9a24d145e271c2faf3fa6dd1fcb3e5d3f4e17273d9e0350b6ab0fe6e2"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:d17832ba39374134c10e82d137e372b5f7478c4cceeb19d02ae3e3d1daed8721"},- {file = "yarl-1.17.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:bc3003710e335e3f842ae3fd78efa55f11a863a89a72e9a07da214db3bf7e1f8"},- {file = "yarl-1.17.2-cp39-cp39-win32.whl", hash = "sha256:f5ffc6b7ace5b22d9e73b2a4c7305740a339fbd55301d52735f73e21d9eb3130"},- {file = "yarl-1.17.2-cp39-cp39-win_amd64.whl", hash = "sha256:48e424347a45568413deec6f6ee2d720de2cc0385019bedf44cd93e8638aa0ed"},- {file = "yarl-1.17.2-py3-none-any.whl", hash = "sha256:dd7abf4f717e33b7487121faf23560b3a50924f80e4bef62b22dab441ded8f3b"},- {file = "yarl-1.17.2.tar.gz", hash = "sha256:753eaaa0c7195244c84b5cc159dc8204b7fd99f716f11198f999f2332a86b178"},+ {file = "yarl-1.18.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:074fee89caab89a97e18ef5f29060ef61ba3cae6cd77673acc54bfdd3214b7b7"},+ {file = "yarl-1.18.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b026cf2c32daf48d90c0c4e406815c3f8f4cfe0c6dfccb094a9add1ff6a0e41a"},+ {file = "yarl-1.18.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ae38bd86eae3ba3d2ce5636cc9e23c80c9db2e9cb557e40b98153ed102b5a736"},+ {file = "yarl-1.18.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:685cc37f3f307c6a8e879986c6d85328f4c637f002e219f50e2ef66f7e062c1d"},+ {file = "yarl-1.18.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8254dbfce84ee5d1e81051ee7a0f1536c108ba294c0fdb5933476398df0654f3"},+ {file = "yarl-1.18.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:20de4a8b04de70c49698dc2390b7fd2d18d424d3b876371f9b775e2b462d4b41"},+ {file = "yarl-1.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b0a2074a37285570d54b55820687de3d2f2b9ecf1b714e482e48c9e7c0402038"},+ {file = "yarl-1.18.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3f576ed278860df2721a5d57da3381040176ef1d07def9688a385c8330db61a1"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3a3709450a574d61be6ac53d582496014342ea34876af8dc17cc16da32826c9a"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:bd80ed29761490c622edde5dd70537ca8c992c2952eb62ed46984f8eff66d6e8"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:32141e13a1d5a48525e519c9197d3f4d9744d818d5c7d6547524cc9eccc8971e"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8b8d3e4e014fb4274f1c5bf61511d2199e263909fb0b8bda2a7428b0894e8dc6"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:701bb4a8f4de191c8c0cc9a1e6d5142f4df880e9d1210e333b829ca9425570ed"},+ {file = "yarl-1.18.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:a45d94075ac0647621eaaf693c8751813a3eccac455d423f473ffed38c8ac5c9"},+ {file = "yarl-1.18.0-cp310-cp310-win32.whl", hash = "sha256:34176bfb082add67cb2a20abd85854165540891147f88b687a5ed0dc225750a0"},+ {file = "yarl-1.18.0-cp310-cp310-win_amd64.whl", hash = "sha256:73553bbeea7d6ec88c08ad8027f4e992798f0abc459361bf06641c71972794dc"},+ {file = "yarl-1.18.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b8e8c516dc4e1a51d86ac975b0350735007e554c962281c432eaa5822aa9765c"},+ {file = "yarl-1.18.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2e6b4466714a73f5251d84b471475850954f1fa6acce4d3f404da1d55d644c34"},+ {file = "yarl-1.18.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c893f8c1a6d48b25961e00922724732d00b39de8bb0b451307482dc87bddcd74"},+ {file = "yarl-1.18.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:13aaf2bdbc8c86ddce48626b15f4987f22e80d898818d735b20bd58f17292ee8"},+ {file = "yarl-1.18.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dd21c0128e301851de51bc607b0a6da50e82dc34e9601f4b508d08cc89ee7929"},+ {file = "yarl-1.18.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:205de377bd23365cd85562c9c6c33844050a93661640fda38e0567d2826b50df"},+ {file = "yarl-1.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed69af4fe2a0949b1ea1d012bf065c77b4c7822bad4737f17807af2adb15a73c"},+ {file = "yarl-1.18.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8e1c18890091aa3cc8a77967943476b729dc2016f4cfe11e45d89b12519d4a93"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:91b8fb9427e33f83ca2ba9501221ffaac1ecf0407f758c4d2f283c523da185ee"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:536a7a8a53b75b2e98ff96edb2dfb91a26b81c4fed82782035767db5a465be46"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:a64619a9c47c25582190af38e9eb382279ad42e1f06034f14d794670796016c0"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c73a6bbc97ba1b5a0c3c992ae93d721c395bdbb120492759b94cc1ac71bc6350"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a173401d7821a2a81c7b47d4e7d5c4021375a1441af0c58611c1957445055056"},+ {file = "yarl-1.18.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7520e799b1f84e095cce919bd6c23c9d49472deeef25fe1ef960b04cca51c3fc"},+ {file = "yarl-1.18.0-cp311-cp311-win32.whl", hash = "sha256:c4cb992d8090d5ae5f7afa6754d7211c578be0c45f54d3d94f7781c495d56716"},+ {file = "yarl-1.18.0-cp311-cp311-win_amd64.whl", hash = "sha256:52c136f348605974c9b1c878addd6b7a60e3bf2245833e370862009b86fa4689"},+ {file = "yarl-1.18.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:1ece25e2251c28bab737bdf0519c88189b3dd9492dc086a1d77336d940c28ced"},+ {file = "yarl-1.18.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:454902dc1830d935c90b5b53c863ba2a98dcde0fbaa31ca2ed1ad33b2a7171c6"},+ {file = "yarl-1.18.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:01be8688fc211dc237e628fcc209dda412d35de7642453059a0553747018d075"},+ {file = "yarl-1.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d26f1fa9fa2167bb238f6f4b20218eb4e88dd3ef21bb8f97439fa6b5313e30d"},+ {file = "yarl-1.18.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b234a4a9248a9f000b7a5dfe84b8cb6210ee5120ae70eb72a4dcbdb4c528f72f"},+ {file = "yarl-1.18.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fe94d1de77c4cd8caff1bd5480e22342dbd54c93929f5943495d9c1e8abe9f42"},+ {file = "yarl-1.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9b4c90c5363c6b0a54188122b61edb919c2cd1119684999d08cd5e538813a28e"},+ {file = "yarl-1.18.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49a98ecadc5a241c9ba06de08127ee4796e1009555efd791bac514207862b43d"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9106025c7f261f9f5144f9aa7681d43867eed06349a7cfb297a1bc804de2f0d1"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f275ede6199d0f1ed4ea5d55a7b7573ccd40d97aee7808559e1298fe6efc8dbd"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:f7edeb1dcc7f50a2c8e08b9dc13a413903b7817e72273f00878cb70e766bdb3b"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c083f6dd6951b86e484ebfc9c3524b49bcaa9c420cb4b2a78ef9f7a512bfcc85"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:80741ec5b471fbdfb997821b2842c59660a1c930ceb42f8a84ba8ca0f25a66aa"},+ {file = "yarl-1.18.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b1a3297b9cad594e1ff0c040d2881d7d3a74124a3c73e00c3c71526a1234a9f7"},+ {file = "yarl-1.18.0-cp312-cp312-win32.whl", hash = "sha256:cd6ab7d6776c186f544f893b45ee0c883542b35e8a493db74665d2e594d3ca75"},+ {file = "yarl-1.18.0-cp312-cp312-win_amd64.whl", hash = "sha256:039c299a0864d1f43c3e31570045635034ea7021db41bf4842693a72aca8df3a"},+ {file = "yarl-1.18.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6fb64dd45453225f57d82c4764818d7a205ee31ce193e9f0086e493916bd4f72"},+ {file = "yarl-1.18.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3adaaf9c6b1b4fc258584f4443f24d775a2086aee82d1387e48a8b4f3d6aecf6"},+ {file = "yarl-1.18.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:da206d1ec78438a563c5429ab808a2b23ad7bc025c8adbf08540dde202be37d5"},+ {file = "yarl-1.18.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:576d258b21c1db4c6449b1c572c75d03f16a482eb380be8003682bdbe7db2f28"},+ {file = "yarl-1.18.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c60e547c0a375c4bfcdd60eef82e7e0e8698bf84c239d715f5c1278a73050393"},+ {file = "yarl-1.18.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e3818eabaefb90adeb5e0f62f047310079d426387991106d4fbf3519eec7d90a"},+ {file = "yarl-1.18.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a5f72421246c21af6a92fbc8c13b6d4c5427dfd949049b937c3b731f2f9076bd"},+ {file = "yarl-1.18.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7fa7d37f2ada0f42e0723632993ed422f2a679af0e200874d9d861720a54f53e"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:42ba84e2ac26a3f252715f8ec17e6fdc0cbf95b9617c5367579fafcd7fba50eb"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:6a49ad0102c0f0ba839628d0bf45973c86ce7b590cdedf7540d5b1833ddc6f00"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:96404e8d5e1bbe36bdaa84ef89dc36f0e75939e060ca5cd45451aba01db02902"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a0509475d714df8f6d498935b3f307cd122c4ca76f7d426c7e1bb791bcd87eda"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:1ff116f0285b5c8b3b9a2680aeca29a858b3b9e0402fc79fd850b32c2bcb9f8b"},+ {file = "yarl-1.18.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e2580c1d7e66e6d29d6e11855e3b1c6381971e0edd9a5066e6c14d79bc8967af"},+ {file = "yarl-1.18.0-cp313-cp313-win32.whl", hash = "sha256:14408cc4d34e202caba7b5ac9cc84700e3421a9e2d1b157d744d101b061a4a88"},+ {file = "yarl-1.18.0-cp313-cp313-win_amd64.whl", hash = "sha256:1db1537e9cb846eb0ff206eac667f627794be8b71368c1ab3207ec7b6f8c5afc"},+ {file = "yarl-1.18.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:fa2c9cb607e0f660d48c54a63de7a9b36fef62f6b8bd50ff592ce1137e73ac7d"},+ {file = "yarl-1.18.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c0f4808644baf0a434a3442df5e0bedf8d05208f0719cedcd499e168b23bfdc4"},+ {file = "yarl-1.18.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:7db9584235895a1dffca17e1c634b13870852094f6389b68dcc6338086aa7b08"},+ {file = "yarl-1.18.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:309f8d27d6f93ceeeb80aa6980e883aa57895270f7f41842b92247e65d7aeddf"},+ {file = "yarl-1.18.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:609ffd44fed2ed88d9b4ef62ee860cf86446cf066333ad4ce4123505b819e581"},+ {file = "yarl-1.18.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f172b8b2c72a13a06ea49225a9c47079549036ad1b34afa12d5491b881f5b993"},+ {file = "yarl-1.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d89ae7de94631b60d468412c18290d358a9d805182373d804ec839978b120422"},+ {file = "yarl-1.18.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:466d31fd043ef9af822ee3f1df8fdff4e8c199a7f4012c2642006af240eade17"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7609b8462351c4836b3edce4201acb6dd46187b207c589b30a87ffd1813b48dc"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:d9d4f5e471e8dc49b593a80766c2328257e405f943c56a3dc985c125732bc4cf"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:67b336c15e564d76869c9a21316f90edf546809a5796a083b8f57c845056bc01"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:b212452b80cae26cb767aa045b051740e464c5129b7bd739c58fbb7deb339e7b"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:38b39b7b3e692b6c92b986b00137a3891eddb66311b229d1940dcbd4f025083c"},+ {file = "yarl-1.18.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a7ee6884a8848792d58b854946b685521f41d8871afa65e0d4a774954e9c9e89"},+ {file = "yarl-1.18.0-cp39-cp39-win32.whl", hash = "sha256:b4095c5019bb889aa866bf12ed4c85c0daea5aafcb7c20d1519f02a1e738f07f"},+ {file = "yarl-1.18.0-cp39-cp39-win_amd64.whl", hash = "sha256:2d90f2e4d16a5b0915ee065218b435d2ef619dd228973b1b47d262a6f7cd8fa5"},+ {file = "yarl-1.18.0-py3-none-any.whl", hash = "sha256:dbf53db46f7cf176ee01d8d98c39381440776fcda13779d269a8ba664f69bec0"},+ {file = "yarl-1.18.0.tar.gz", hash = "sha256:20d95535e7d833889982bfe7cc321b7f63bf8879788fee982c76ae2b24cfb715"},][package.dependencies]@@ -9932,6 +9932,7 @@ model-platforms = ["anthropic", "cohere", "google-generativeai", "litellm", "misobject-storages = ["azure-storage-blob", "botocore", "google-cloud-storage"]rag = ["cohere", "nebula3-python", "neo4j", "pymilvus", "qdrant-client", "rank-bm25", "sentence-transformers", "unstructured"]retrievers = ["cohere", "rank-bm25"]+runtime = ["docker"]search-tools = ["duckduckgo-search", "tavily-python", "wikipedia", "wolframalpha"]test = ["mock", "pytest", "pytest-asyncio"]tools = ["PyMuPDF", "agentops", "apify_client", "arxiv", "arxiv2text", "asknews", "beautifulsoup4", "datacommons", "datacommons_pandas", "discord.py", "docker", "docx2txt", "duckduckgo-search", "firecrawl-py", "googlemaps", "imageio", "ipykernel", "jupyter_client", "newspaper3k", "nltk", "notion-client", "openapi-spec-validator", "pdfplumber", "pillow", "prance", "praw", "pyTelegramBotAPI", "pydub", "pygithub", "pyowm", "requests_oauthlib", "scholarly", "slack-bolt", "slack-sdk", "textblob", "unstructured", "wikipedia", "wolframalpha"]@@ -9940,4 +9941,4 @@ vector-databases = ["pymilvus", "qdrant-client"][metadata]lock-version = "2.0"python-versions = ">=3.10,<3.13"-content-hash = "e0860a01ffd863be1542a0a9e837332630cee85e64bb0ca6a921fe600a97710d"+content-hash = "f9e4ce59fafe902d1ef64b7de0754c68b0c282291fde3ffa8dc40afd20fa827e"diff --git a/pyproject.toml b/pyproject.tomlindex b278318f6..a90c18efd 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -129,7 +129,7 @@ rank-bm25 = { version = "^0.2.2", optional = true }# testpytest = { version = "^7", optional = true }pytest-asyncio = { version = "^0.23.0", optional = true }-mock = { version = "^5", optional = true }+mock = { version = "^5", optional = true}[tool.poetry.extras]test = ["pytest", "mock", "pytest-asyncio"]@@ -243,6 +243,12 @@ retrievers = ["cohere",]+runtime = [+ "docker",+ "fastapi",+ "uvicorn",+]+all = [# huggingface-agent"transformers",@@ -318,6 +324,8 @@ all = ["datacommons_pandas","tavily-python","apify_client",+ "fastapi",+ "uvicorn",][tool.poetry.group.dev]diff --git a/test/runtime/test_code_execution_with_llm_guard_runtime.py b/test/runtime/test_code_execution_with_llm_guard_runtime.pynew file mode 100644index 000000000..1b6011cd6--- /dev/null+++ b/test/runtime/test_code_execution_with_llm_guard_runtime.py@@ -0,0 +1,73 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========++from camel.agents import ChatAgent+from camel.configs import ChatGPTConfig+from camel.messages import BaseMessage+from camel.models import ModelFactory+from camel.runtime import LLMGuardRuntime+from camel.toolkits.code_execution import CodeExecutionToolkit+from camel.types import ModelPlatformType, ModelType+++def test_code_execution_with_llm_guard_runtime():+ runtime = LLMGuardRuntime(verbose=True).add(+ *CodeExecutionToolkit().get_tools()+ )++ tools = runtime.get_tools()++ assert len(tools) == 2++ assert tools[0].get_function_name() == "ignore_risk"+ assert tools[1].get_function_name() == "execute_code"++ # set up LLM model+ assistant_model_config = ChatGPTConfig(+ temperature=0.0,+ )++ model = ModelFactory.create(+ model_platform=ModelPlatformType.DEFAULT,+ model_type=ModelType.DEFAULT,+ model_config_dict=assistant_model_config.as_dict(),+ )++ # set up agent+ assistant_sys_msg = BaseMessage.make_assistant_message(+ role_name="Teacher",+ content=(+ "You are a personal math tutor and programmer. "+ "When asked a math question, "+ "write and run Python code to answer the question."+ ),+ )++ agent = ChatAgent(+ assistant_sys_msg,+ model,+ tools=tools,+ )+ agent.reset()++ # set up agent++ prompt = (+ "Weng earns $12 an hour for babysitting. "+ "Yesterday, she just did 51 minutes of babysitting."+ "How much did she earn?"+ )+ user_msg = BaseMessage.make_user_message(role_name="User", content=prompt)++ agent.step(user_msg)diff --git a/test/runtime/test_docker_runtime.py b/test/runtime/test_docker_runtime.pynew file mode 100644index 000000000..1c27ba5d2--- /dev/null+++ b/test/runtime/test_docker_runtime.py@@ -0,0 +1,53 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+import pytest++from camel.runtime import DockerRuntime+from camel.toolkits import CodeExecutionToolkit, MathToolkit++[email protected](reason="Need Docker environment to run this test.")+def test_docker_runtime():+ runtime = (+ DockerRuntime("xukunliu/camel") # change to your own docker image+ .add(MathToolkit().get_tools(), "camel.toolkits.MathToolkit")+ .add(+ CodeExecutionToolkit().get_tools(),+ "camel.toolkits.CodeExecutionToolkit",+ dict(verbose=True),+ )+ )++ with (+ runtime as r+ ): # using with statement to automatically close the runtime+ print("Waiting for runtime to be ready...")+ r.wait()+ print("Runtime is ready.")++ tools = r.get_tools()++ assert len(tools) == 4++ add, sub, mul = tools[:3]++ assert add.func(1, 2) == 3+ assert sub.func(5, 3) == 2+ assert mul.func(2, 3) == 6++ assert add.func(a=1, b=2) == 3+ assert sub.func(a=5, b=3) == 2+ assert mul.func(a=2, b=3) == 6++ assert r.docs == "http://localhost:8000/docs"diff --git a/test/runtime/test_remote_http_runtime.py b/test/runtime/test_remote_http_runtime.pynew file mode 100644index 000000000..f739fa577--- /dev/null+++ b/test/runtime/test_remote_http_runtime.py@@ -0,0 +1,33 @@+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+# Licensed under the Apache License, Version 2.0 (the āLicenseā);+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an āAS ISā BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========+from camel.runtime import RemoteHttpRuntime+from camel.toolkits import MathToolkit+++def test_remote_http_runtime():+ runtime = (+ RemoteHttpRuntime("localhost")+ .add(MathToolkit().get_tools(), "camel.toolkits.MathToolkit")+ .build()+ )+ print("Waiting for runtime to be ready...")+ runtime.wait()+ print("Runtime is ready.")+ add, sub, mul = runtime.get_tools()++ assert add.func(1, 2) == 3+ assert sub.func(5, 3) == 2+ assert mul.func(2, 3) == 6++ assert runtime.docs == "http://localhost:8000/docs"