Skip to content

Commit

Permalink
Make ChatAgent an ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits committed Jan 21, 2025
1 parent da1c2bf commit e2cba67
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from abc import ABC
from dataclasses import dataclass
from typing import Any, AsyncGenerator, Mapping, Protocol, Sequence, runtime_checkable
from typing import Any, AsyncGenerator, Mapping, Sequence, runtime_checkable

from autogen_core import CancellationToken

Expand All @@ -20,7 +21,7 @@ class Response:


@runtime_checkable
class ChatAgent(TaskRunner, Protocol):
class ChatAgent(TaskRunner, ABC):
"""Protocol for a chat agent."""

@property
Expand Down

0 comments on commit e2cba67

Please sign in to comment.