| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
OpenAI.V1.Tool
Contents
Description
The Tool type
Synopsis
- data Tool
- = Tool_Code_Interpreter
- | Tool_File_Search { }
- | Tool_Function { }
- data RankingOptions = RankingOptions {
- ranker :: Maybe Text
- score_threshold :: Double
- data FileSearch = FileSearch {}
- data Function = Function {}
- data ToolChoice
Types
A tool enabled on the assistant
Constructors
| Tool_Code_Interpreter | |
| Tool_File_Search | |
Fields | |
| Tool_Function | |
Instances
| FromJSON Tool Source # | |
Defined in OpenAI.V1.Tool | |
| ToJSON Tool Source # | |
| Generic Tool Source # | |
| Show Tool Source # | |
| type Rep Tool Source # | |
Defined in OpenAI.V1.Tool type Rep Tool = D1 ('MetaData "Tool" "OpenAI.V1.Tool" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "Tool_Code_Interpreter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Tool_File_Search" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_search") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileSearch)) :+: C1 ('MetaCons "Tool_Function" 'PrefixI 'True) (S1 ('MetaSel ('Just "function") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Function)))) | |
data RankingOptions Source #
The ranking options for the file search
Constructors
| RankingOptions | |
Fields
| |
Instances
data FileSearch Source #
Overrides for the file search tool
Constructors
| FileSearch | |
Fields | |
Instances
The Function tool
Constructors
| Function | |
Instances
| FromJSON Function Source # | |
Defined in OpenAI.V1.Tool | |
| ToJSON Function Source # | |
| Generic Function Source # | |
| Show Function Source # | |
| type Rep Function Source # | |
Defined in OpenAI.V1.Tool type Rep Function = D1 ('MetaData "Function" "OpenAI.V1.Tool" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "Function" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "strict") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) | |
data ToolChoice Source #
Controls which (if any) tool is called by the model
Constructors
| ToolChoiceNone | |
| ToolChoiceAuto | |
| ToolChoiceRequired | |
| ToolChoiceTool Tool |