diff --git a/arcade/arcade/actor/core/base.py b/arcade/arcade/actor/core/base.py index 0ef03ee7..ce11b400 100644 --- a/arcade/arcade/actor/core/base.py +++ b/arcade/arcade/actor/core/base.py @@ -110,7 +110,6 @@ def register_toolkit(self, toolkit: Toolkit) -> None: """ self.catalog.add_toolkit(toolkit) self._update_catalog_uuid() - print(self.uuid) async def call_tool(self, tool_request: ToolCallRequest) -> ToolCallResponse: """ diff --git a/arcade/arcade/actor/core/common.py b/arcade/arcade/actor/core/common.py index e50337eb..ad8efb3a 100644 --- a/arcade/arcade/actor/core/common.py +++ b/arcade/arcade/actor/core/common.py @@ -65,7 +65,7 @@ async def call_tool(self, request: ToolCallRequest) -> ToolCallResponse: @abstractmethod async def tool_status(self, request: ToolStatusRequest) -> ToolStatusResponse: """ - Send a request to get the last time tools were updated + Send a request to get the last uuid of the toolkits """ pass diff --git a/arcade/arcade/actor/core/components.py b/arcade/arcade/actor/core/components.py index f1543c93..1288e33a 100644 --- a/arcade/arcade/actor/core/components.py +++ b/arcade/arcade/actor/core/components.py @@ -1,4 +1,3 @@ -import time from typing import Any from opentelemetry import trace @@ -56,7 +55,6 @@ async def __call__(self, request: RequestData) -> ToolCallResponse: class ToolStatusComponent(ActorComponent): def __init__(self, actor: Actor) -> None: self.actor = actor - self.last_update_time = time.time() def register(self, router: Router) -> None: """ diff --git a/arcade/arcade/core/schema.py b/arcade/arcade/core/schema.py index 29e8439a..48e06e24 100644 --- a/arcade/arcade/core/schema.py +++ b/arcade/arcade/core/schema.py @@ -256,7 +256,7 @@ class ToolStatusRequest(BaseModel): """The request to check for updates for tools.""" uuid: str - """The timestamp to compare the last update against""" + """The UUID to compare against the current toolkits UUID""" class ToolCallError(BaseModel): @@ -330,4 +330,4 @@ class ToolStatusResponse(BaseModel): """The response to a status invocation.""" uuid: str - """The timestamp when the tools were last updated.""" + """The current UUID of the registered toolkits."""