mirror of
https://github.com/home-assistant/core.git
synced 2026-06-05 23:16:33 +01:00
a119932ee5
* Refactor the conversation integration * Lint
13 lines
336 B
Python
13 lines
336 B
Python
"""Agent foundation for conversation integration."""
|
|
from abc import ABC, abstractmethod
|
|
|
|
from homeassistant.helpers import intent
|
|
|
|
|
|
class AbstractConversationAgent(ABC):
|
|
"""Abstract conversation agent."""
|
|
|
|
@abstractmethod
|
|
async def async_process(self, text: str) -> intent.IntentResponse:
|
|
"""Process a sentence."""
|