We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DeepActionPotential/NotionMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
base.py•632 B
from abc import ABC, abstractmethod
from typing import Optional
class TextSummarizer(ABC):
"""
Abstract base class for text summarization models.
"""
@abstractmethod
async def summarize(self, text: str, *, max_length: Optional[int] = 200) -> str:
"""
Summarize a given text asynchronously.
Parameters
----------
text : str
Input text to summarize.
max_length : Optional[int], optional
Maximum token length of the summary. Default is 200.
Returns
-------
str
Summarized text.
"""
...