Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The Message
type
Synopsis
- data Message
- data ImageFile = ImageFile {}
- data ImageURL = ImageURL {}
- data Content text
- = Image_File { }
- | Image_URL { }
- | Text {
- text :: text
- data Attachment = Attachment {}
Main types
A message
Instances
Other types
References an image File in the content of a message
Instances
FromJSON ImageFile Source # | |
Defined in OpenAI.V1.Message | |
ToJSON ImageFile Source # | |
Generic ImageFile Source # | |
Show ImageFile Source # | |
type Rep ImageFile Source # | |
Defined in OpenAI.V1.Message type Rep ImageFile = D1 ('MetaData "ImageFile" "OpenAI.V1.Message" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "ImageFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileID) :*: S1 ('MetaSel ('Just "detail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (AutoOr Text))))) |
References an image URL in the content of a message
Instances
FromJSON ImageURL Source # | |
Defined in OpenAI.V1.Message | |
ToJSON ImageURL Source # | |
Generic ImageURL Source # | |
Show ImageURL Source # | |
type Rep ImageURL Source # | |
Defined in OpenAI.V1.Message type Rep ImageURL = D1 ('MetaData "ImageURL" "OpenAI.V1.Message" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "ImageURL" 'PrefixI 'True) (S1 ('MetaSel ('Just "image_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "detail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (AutoOr Text))))) |
Message content
Image_File | |
Image_URL | |
Text | |
|
Instances
FromJSON text => FromJSON (Content text) Source # | |
Defined in OpenAI.V1.Message | |
ToJSON text => ToJSON (Content text) Source # | |
IsString text => IsString (Content text) Source # | |
Defined in OpenAI.V1.Message fromString :: String -> Content text # | |
Generic (Content text) Source # | |
Show text => Show (Content text) Source # | |
type Rep (Content text) Source # | |
Defined in OpenAI.V1.Message type Rep (Content text) = D1 ('MetaData "Content" "OpenAI.V1.Message" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "Image_File" 'PrefixI 'True) (S1 ('MetaSel ('Just "image_file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ImageFile)) :+: (C1 ('MetaCons "Image_URL" 'PrefixI 'True) (S1 ('MetaSel ('Just "image_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ImageURL)) :+: C1 ('MetaCons "Text" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 text)))) |
data Attachment Source #
A file attached to the message, and the tools it should be added to