Add property supported_languages to AbstractConversationAgent (#91588)

* Add property supported_languages to AbstractConversationAgent

* Fix test

* Use MATCH_ALL for openai supported languages
This commit is contained in:
Erik Montnemery 2023-04-18 22:11:04 +02:00 committed by GitHub
parent d7eb4c4740
commit dc3c47986b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 62 additions and 2 deletions

View file

@ -18,6 +18,11 @@ class MockAgent(conversation.AbstractConversationAgent):
self.calls = []
self.response = "Test response"
@property
def supported_languages(self) -> list[str]:
"""Return a list of supported languages."""
return ["smurfish"]
async def async_process(
self, user_input: conversation.ConversationInput
) -> conversation.ConversationResult: