Clean up conversation agent attribution (#96883)
* Clean up conversation agent attribution * Clean up google_generative_ai_conversation as well
This commit is contained in:
parent
22d0f4ff0a
commit
f2bd122fde
8 changed files with 1 additions and 101 deletions
|
@ -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["*"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue