configuration et al: implemented new Config format
This commit is contained in:
@@ -33,18 +33,23 @@ class AI(Protocol):
|
||||
The base class for AI clients.
|
||||
"""
|
||||
|
||||
ID: str
|
||||
name: str
|
||||
config: AIConfig
|
||||
|
||||
def request(self,
|
||||
question: Message,
|
||||
context: Chat,
|
||||
chat: Chat,
|
||||
num_answers: int = 1,
|
||||
otags: Optional[set[Tag]] = None) -> AIResponse:
|
||||
"""
|
||||
Make an AI request, asking the given question with the given
|
||||
context (i. e. chat history). The nr. of requested answers
|
||||
corresponds to the nr. of messages in the 'AIResponse'.
|
||||
Make an AI request. Parameters:
|
||||
* question: the question to ask
|
||||
* chat: the chat history to be added as context
|
||||
* num_answers: nr. of requested answers (corresponds
|
||||
to the nr. of messages in the 'AIResponse')
|
||||
* otags: the output tags, i. e. the tags that all
|
||||
returned messages should contain
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user