mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 21:44:18 +02:00
Remove ABC
This commit is contained in:
parent
7224295f93
commit
ec9fab070c
1 changed files with 1 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||
|
||||
import inspect
|
||||
import json
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
|
@ -33,7 +32,7 @@ def default_serializer(data: Any) -> str:
|
|||
return pydantic_core.to_json(data, fallback=str, indent=2).decode()
|
||||
|
||||
|
||||
class Tool(FastMCPComponent, ABC):
|
||||
class Tool(FastMCPComponent):
|
||||
"""Internal tool registration info."""
|
||||
|
||||
parameters: dict[str, Any] = Field(description="JSON schema for tool parameters")
|
||||
|
|
@ -76,7 +75,6 @@ class Tool(FastMCPComponent, ABC):
|
|||
enabled=enabled,
|
||||
)
|
||||
|
||||
@abstractmethod
|
||||
async def run(
|
||||
self, arguments: dict[str, Any]
|
||||
) -> list[TextContent | ImageContent | EmbeddedResource]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue