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:
parent
d7eb4c4740
commit
dc3c47986b
8 changed files with 62 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue