mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
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:
12
autogpt/models/command_parameter.py
Normal file
12
autogpt/models/command_parameter.py
Normal 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})"
|
||||
Reference in New Issue
Block a user