Clean up conversation agent attribution (#96883)

* Clean up conversation agent attribution

* Clean up google_generative_ai_conversation as well
This commit is contained in:
Franck Nijhof 2023-07-19 09:03:53 +02:00 committed by GitHub
parent 22d0f4ff0a
commit f2bd122fde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 101 deletions

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Any, Literal, TypedDict
from typing import Any, Literal
from homeassistant.core import Context
from homeassistant.helpers import intent
@ -35,21 +35,9 @@ class ConversationResult:
}
class Attribution(TypedDict):
"""Attribution for a conversation agent."""
name: str
url: str
class AbstractConversationAgent(ABC):
"""Abstract conversation agent."""
@property
def attribution(self) -> Attribution | None:
"""Return the attribution."""
return None
@property
@abstractmethod
def supported_languages(self) -> list[str] | Literal["*"]: