mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-14 05:37:40 +02:00
14 lines
385 B
Python
14 lines
385 B
Python
from typing import Optional
|
|
from pydantic import BaseModel
|
|
from backend.apps.HaikFix.tools.shared_structs.TOOL_PERMISSIONS import TOOL_PERMISSIONS
|
|
from typeguard import typechecked
|
|
|
|
class Tool(BaseModel):
|
|
name: str
|
|
description: Optional[str] = None
|
|
deferred: bool
|
|
permission: TOOL_PERMISSIONS
|
|
|
|
@typechecked
|
|
def to_sdk_args(self) -> str:
|
|
return self.name |