aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt/models/utils.py
blob: 1b4db2175b1c2e2969463de4ce09952449060d30 (plain)
1
2
3
4
5
6
7
8
9
10
from abc import ABC, abstractmethod

from pydantic import BaseModel


class ModelWithSummary(BaseModel, ABC):
    @abstractmethod
    def summary(self) -> str:
        """Should produce a human readable summary of the model content."""
        pass