1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-05 23:16:33 +01:00
Files
core/homeassistant/components/conversation/agent.py
T
Paulus Schoutsen a119932ee5 Refactor the conversation integration (#27839)
* Refactor the conversation integration

* Lint
2019-10-18 11:46:45 -07:00

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."""