Add OpenAI function call support (#4683)

Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
This commit is contained in:
Erik Peterson
2023-06-21 19:52:44 -07:00
committed by GitHub
parent 32038c9f5b
commit 857d26d101
23 changed files with 416 additions and 180 deletions

View File

@@ -0,0 +1,12 @@
import dataclasses
@dataclasses.dataclass
class CommandParameter:
name: str
type: str
description: str
required: bool
def __repr__(self):
return f"CommandParameter('{self.name}', '{self.type}', '{self.description}', {self.required})"