2019-10-18 18:46:45 +00:00
|
|
|
"""Agent foundation for conversation integration."""
|
|
|
|
from abc import ABC, abstractmethod
|
2019-11-07 20:21:12 +00:00
|
|
|
from typing import Optional
|
2019-10-18 18:46:45 +00:00
|
|
|
|
|
|
|
from homeassistant.helpers import intent
|
|
|
|
|
|
|
|
|
|
|
|
class AbstractConversationAgent(ABC):
|
|
|
|
"""Abstract conversation agent."""
|
|
|
|
|
|
|
|
@abstractmethod
|
2019-11-07 20:21:12 +00:00
|
|
|
async def async_process(
|
|
|
|
self, text: str, conversation_id: Optional[str] = None
|
|
|
|
) -> intent.IntentResponse:
|
2019-10-18 18:46:45 +00:00
|
|
|
"""Process a sentence."""
|