AutoGPT/autogpt/types/openai.py

10 lines
218 B
Python

"""Type helpers for working with the OpenAI library"""
from typing import TypedDict
class Message(TypedDict):
"""OpenAI Message object containing a role and the message content"""
role: str
content: str