| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenAI.V1.Responses
Contents
Description
/v1/responses
Streaming is not implemented here; this covers JSON responses only.
Synopsis
- data CreateResponse = CreateResponse {
- model :: Model
- input :: Maybe Input
- include :: Maybe (Vector Text)
- reasoning :: Maybe Reasoning
- service_tier :: Maybe (AutoOr ServiceTier)
- parallel_tool_calls :: Maybe Bool
- store :: Maybe Bool
- instructions :: Maybe Text
- stream :: Maybe Bool
- stream_options :: Maybe Value
- metadata :: Maybe (Map Text Text)
- temperature :: Maybe Double
- top_p :: Maybe Double
- tools :: Maybe (Vector Tool)
- tool_choice :: Maybe ToolChoice
- _CreateResponse :: CreateResponse
- newtype Input = Input (Vector InputItem)
- data InputItem
- = Item_Input_Message { }
- | Item_Input_Function_Call { }
- | Item_Input_Function_Call_Output { }
- | Item_Input_Reasoning {
- reasoning_id :: Text
- reasoning_encrypted_content :: Maybe Text
- reasoning_summary :: Maybe (Vector SummaryPart)
- reasoning_content :: Maybe (Vector ReasoningText)
- reasoning_status :: Maybe Text
- | Item_Input_Item_Reference { }
- data InputRole
- data InputContent
- data OutputItem
- = Item_OutputMessage {
- message_id :: Text
- message_role :: Text
- message_content :: Vector OutputContent
- message_status :: Text
- | Item_FunctionToolCall { }
- | Item_WebSearchToolCall { }
- | Item_FunctionToolCallOutput { }
- | Item_FileSearchToolCall {
- file_search_id :: Text
- file_search_status :: Text
- file_search_queries :: Vector Text
- file_search_results :: Maybe (Vector FileSearchResult)
- | Item_CodeInterpreterToolCall { }
- | Item_Reasoning {
- reasoning_id :: Text
- reasoning_encrypted_content :: Maybe Text
- reasoning_summary :: Maybe (Vector SummaryPart)
- reasoning_content :: Maybe (Vector ReasoningText)
- reasoning_status :: Maybe Text
- = Item_OutputMessage {
- data OutputMessage = OutputMessage {}
- data OutputContent
- data FunctionToolCall = FunctionToolCall {}
- data FunctionToolCallOutput = FunctionToolCallOutput {}
- data WebSearchToolCall = WebSearchToolCall {}
- data FileSearchToolCall = FileSearchToolCall {}
- data FileSearchResult = FileSearchResult {}
- data CodeInterpreterToolCall = CodeInterpreterToolCall {}
- data CodeInterpreterOutput
- data WebSearchAction
- = WebSearchAction_Search { }
- | WebSearchAction_Open_Page { }
- | WebSearchAction_Find { }
- data WebSearchSource = WebSearchSource_URL {}
- data Annotation
- = Annotation_File_Citation { }
- | Annotation_Url_Citation { }
- | Annotation_Container_File_Citation {
- container_id :: Text
- file_id :: Text
- start_index :: Natural
- end_index :: Natural
- filename :: Text
- | Annotation_File_Path { }
- data ReasoningSummary
- data Reasoning = Reasoning {}
- _Reasoning :: Reasoning
- data ReasoningItem = ReasoningItem {
- id :: Text
- encrypted_content :: Maybe Text
- summary :: Maybe (Vector SummaryPart)
- content :: Maybe (Vector ReasoningText)
- status :: Maybe Text
- data SummaryPart = Summary_Text {}
- data ReasoningText = Reasoning_Text {}
- data ReasoningEffort
- type ServiceTier = Text
- data ResponseStreamEvent
- = ResponseCreatedEvent { }
- | ResponseInProgressEvent { }
- | ResponseCompletedEvent { }
- | ResponseFailedEvent { }
- | ResponseOutputItemAddedEvent { }
- | ResponseOutputItemDoneEvent { }
- | ResponseContentPartAddedEvent { }
- | ResponseContentPartDoneEvent { }
- | ResponseTextDeltaEvent { }
- | ResponseTextDoneEvent {
- item_id :: Text
- output_index :: Natural
- content_index :: Natural
- text :: Text
- sequence_number :: Natural
- | ResponseOutputTextAnnotationAddedEvent { }
- | ResponseWebSearchCallInProgressEvent { }
- | ResponseWebSearchCallSearchingEvent { }
- | ResponseWebSearchCallCompletedEvent { }
- | ResponseFileSearchCallInProgressEvent { }
- | ResponseFileSearchCallSearchingEvent { }
- | ResponseFileSearchCallCompletedEvent { }
- | ResponseCodeInterpreterCallInProgressEvent { }
- | ResponseCodeInterpreterCallInterpretingEvent { }
- | ResponseCodeInterpreterCallCompletedEvent { }
- | ResponseCodeInterpreterCallCodeDeltaEvent {
- output_index :: Natural
- item_id :: Text
- delta :: Text
- sequence_number :: Natural
- | ResponseCodeInterpreterCallCodeDoneEvent {
- output_index :: Natural
- item_id :: Text
- code :: Text
- sequence_number :: Natural
- | ErrorEvent { }
- data ResponseObject = ResponseObject {
- id :: Text
- object :: Text
- created_at :: POSIXTime
- status :: Text
- error :: Maybe Value
- incomplete_details :: Maybe Value
- instructions :: Maybe Value
- model :: Model
- output :: Vector OutputItem
- parallel_tool_calls :: Bool
- previous_response_id :: Maybe Text
- reasoning :: Maybe Reasoning
- service_tier :: Maybe ServiceTier
- store :: Maybe Bool
- temperature :: Maybe Double
- tool_choice :: Maybe ToolChoice
- tools :: Maybe (Vector Tool)
- top_p :: Maybe Double
- truncation :: Maybe Text
- usage :: Maybe ResponseUsage
- user :: Maybe Text
- metadata :: Maybe (Map Text Text)
- data ResponseUsage = ResponseUsage {}
- data InputTokensDetails = InputTokensDetails {}
- data OutputTokensDetails = OutputTokensDetails {}
- statusIncomplete :: Text
- statusCompleted :: Text
- type API = "responses" :> ((ReqBody '[JSON] CreateResponse :> Post '[JSON] ResponseObject) :<|> ((Capture "response_id" Text :> Get '[JSON] ResponseObject) :<|> ((Capture "response_id" Text :> ("cancel" :> Post '[JSON] ResponseObject)) :<|> (Capture "response_id" Text :> ("input_items" :> Get '[JSON] (ListOf InputItem))))))
Main types
data CreateResponse Source #
Request body for /v1/responses
Constructors
| CreateResponse | |
Fields
| |
Instances
_CreateResponse :: CreateResponse Source #
Default CreateResponse
Input for the Responses API: a list of input items
An input item
Constructors
| Item_Input_Message | |
| Item_Input_Function_Call | |
| Item_Input_Function_Call_Output | |
| Item_Input_Reasoning | |
Fields
| |
| Item_Input_Item_Reference | |
Instances
| FromJSON InputItem Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON InputItem Source # | |||||
| Generic InputItem Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show InputItem Source # | |||||
| Eq InputItem Source # | |||||
| type Rep InputItem Source # | |||||
Defined in OpenAI.V1.Responses type Rep InputItem = D1 ('MetaData "InputItem" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((C1 ('MetaCons "Item_Input_Message" 'PrefixI 'True) (S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputRole) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector InputContent)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :+: C1 ('MetaCons "Item_Input_Function_Call" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) :+: (C1 ('MetaCons "Item_Input_Function_Call_Output" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :+: (C1 ('MetaCons "Item_Input_Reasoning" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reasoning_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "reasoning_encrypted_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "reasoning_summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector SummaryPart))) :*: (S1 ('MetaSel ('Just "reasoning_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector ReasoningText))) :*: S1 ('MetaSel ('Just "reasoning_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :+: C1 ('MetaCons "Item_Input_Item_Reference" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) | |||||
Role of an input message
Instances
| FromJSON InputRole Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON InputRole Source # | |||||
| Generic InputRole Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show InputRole Source # | |||||
| Eq InputRole Source # | |||||
| type Rep InputRole Source # | |||||
Defined in OpenAI.V1.Responses type Rep InputRole = D1 ('MetaData "InputRole" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "User" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "System" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Developer" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data InputContent Source #
Content parts for input messages
Constructors
| Input_Text | |
| Input_Image | |
| Input_File | |
| Input_Audio | |
Fields | |
Instances
| FromJSON InputContent Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON InputContent Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: InputContent -> Value # toEncoding :: InputContent -> Encoding # toJSONList :: [InputContent] -> Value # toEncodingList :: [InputContent] -> Encoding # omitField :: InputContent -> Bool # | |||||
| Generic InputContent Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show InputContent Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> InputContent -> ShowS # show :: InputContent -> String # showList :: [InputContent] -> ShowS # | |||||
| Eq InputContent Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| type Rep InputContent Source # | |||||
Defined in OpenAI.V1.Responses type Rep InputContent = D1 ('MetaData "InputContent" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((C1 ('MetaCons "Input_Text" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "Input_Image" 'PrefixI 'True) (S1 ('MetaSel ('Just "image_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "detail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :+: (C1 ('MetaCons "Input_File" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "file_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "file_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :+: C1 ('MetaCons "Input_Audio" 'PrefixI 'True) (S1 ('MetaSel ('Just "input_audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))) | |||||
data OutputItem Source #
A generated output item.
Constructors
| Item_OutputMessage | |
Fields
| |
| Item_FunctionToolCall | |
Fields
| |
| Item_WebSearchToolCall | |
Fields | |
| Item_FunctionToolCallOutput | |
| Item_FileSearchToolCall | |
Fields
| |
| Item_CodeInterpreterToolCall | |
Fields | |
| Item_Reasoning | |
Fields
| |
Instances
| FromJSON OutputItem Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON OutputItem Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: OutputItem -> Value # toEncoding :: OutputItem -> Encoding # toJSONList :: [OutputItem] -> Value # toEncodingList :: [OutputItem] -> Encoding # omitField :: OutputItem -> Bool # | |||||
| Generic OutputItem Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show OutputItem Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> OutputItem -> ShowS # show :: OutputItem -> String # showList :: [OutputItem] -> ShowS # | |||||
| type Rep OutputItem Source # | |||||
Defined in OpenAI.V1.Responses type Rep OutputItem = D1 ('MetaData "OutputItem" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((C1 ('MetaCons "Item_OutputMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "message_role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector OutputContent)) :*: S1 ('MetaSel ('Just "message_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :+: (C1 ('MetaCons "Item_FunctionToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "function_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "function_call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "function_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "function_arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "function_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :+: C1 ('MetaCons "Item_WebSearchToolCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "web_search_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "web_search_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "web_search_action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebSearchAction)))))) :+: ((C1 ('MetaCons "Item_FunctionToolCallOutput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "function_output_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "function_output_call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "function_output_output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "function_output_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :+: C1 ('MetaCons "Item_FileSearchToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_search_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "file_search_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "file_search_queries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Text)) :*: S1 ('MetaSel ('Just "file_search_results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector FileSearchResult)))))) :+: (C1 ('MetaCons "Item_CodeInterpreterToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "code_interpreter_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "code_interpreter_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "code_interpreter_container_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "code_interpreter_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "code_interpreter_outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector CodeInterpreterOutput)))))) :+: C1 ('MetaCons "Item_Reasoning" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reasoning_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "reasoning_encrypted_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "reasoning_summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector SummaryPart))) :*: (S1 ('MetaSel ('Just "reasoning_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector ReasoningText))) :*: S1 ('MetaSel ('Just "reasoning_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))))) | |||||
data OutputMessage Source #
An output message item
Constructors
| OutputMessage | |
Instances
| FromJSON OutputMessage Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser OutputMessage # parseJSONList :: Value -> Parser [OutputMessage] # | |||||
| ToJSON OutputMessage Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: OutputMessage -> Value # toEncoding :: OutputMessage -> Encoding # toJSONList :: [OutputMessage] -> Value # toEncodingList :: [OutputMessage] -> Encoding # omitField :: OutputMessage -> Bool # | |||||
| Generic OutputMessage Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show OutputMessage Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> OutputMessage -> ShowS # show :: OutputMessage -> String # showList :: [OutputMessage] -> ShowS # | |||||
| type Rep OutputMessage Source # | |||||
Defined in OpenAI.V1.Responses type Rep OutputMessage = D1 ('MetaData "OutputMessage" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "OutputMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector OutputContent)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) | |||||
data OutputContent Source #
Output content from the model
Constructors
| Output_Text | |
| Refusal | |
Instances
| FromJSON OutputContent Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser OutputContent # parseJSONList :: Value -> Parser [OutputContent] # | |||||
| ToJSON OutputContent Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: OutputContent -> Value # toEncoding :: OutputContent -> Encoding # toJSONList :: [OutputContent] -> Value # toEncodingList :: [OutputContent] -> Encoding # omitField :: OutputContent -> Bool # | |||||
| Generic OutputContent Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show OutputContent Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> OutputContent -> ShowS # show :: OutputContent -> String # showList :: [OutputContent] -> ShowS # | |||||
| type Rep OutputContent Source # | |||||
Defined in OpenAI.V1.Responses type Rep OutputContent = D1 ('MetaData "OutputContent" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "Output_Text" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Value)) :*: S1 ('MetaSel ('Just "logprobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector Value))))) :+: C1 ('MetaCons "Refusal" 'PrefixI 'True) (S1 ('MetaSel ('Just "refusal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data FunctionToolCall Source #
Function tool call output item
Constructors
| FunctionToolCall | |
Instances
| FromJSON FunctionToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser FunctionToolCall # parseJSONList :: Value -> Parser [FunctionToolCall] # | |||||
| ToJSON FunctionToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: FunctionToolCall -> Value # toEncoding :: FunctionToolCall -> Encoding # toJSONList :: [FunctionToolCall] -> Value # toEncodingList :: [FunctionToolCall] -> Encoding # omitField :: FunctionToolCall -> Bool # | |||||
| Generic FunctionToolCall Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: FunctionToolCall -> Rep FunctionToolCall x # to :: Rep FunctionToolCall x -> FunctionToolCall # | |||||
| Show FunctionToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> FunctionToolCall -> ShowS # show :: FunctionToolCall -> String # showList :: [FunctionToolCall] -> ShowS # | |||||
| type Rep FunctionToolCall Source # | |||||
Defined in OpenAI.V1.Responses type Rep FunctionToolCall = D1 ('MetaData "FunctionToolCall" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "FunctionToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) | |||||
data FunctionToolCallOutput Source #
Function tool call output item
Constructors
| FunctionToolCallOutput | |
Instances
| FromJSON FunctionToolCallOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser FunctionToolCallOutput # parseJSONList :: Value -> Parser [FunctionToolCallOutput] # | |||||
| ToJSON FunctionToolCallOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: FunctionToolCallOutput -> Value # toEncoding :: FunctionToolCallOutput -> Encoding # toJSONList :: [FunctionToolCallOutput] -> Value # toEncodingList :: [FunctionToolCallOutput] -> Encoding # omitField :: FunctionToolCallOutput -> Bool # | |||||
| Generic FunctionToolCallOutput Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: FunctionToolCallOutput -> Rep FunctionToolCallOutput x # to :: Rep FunctionToolCallOutput x -> FunctionToolCallOutput # | |||||
| Show FunctionToolCallOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> FunctionToolCallOutput -> ShowS # show :: FunctionToolCallOutput -> String # showList :: [FunctionToolCallOutput] -> ShowS # | |||||
| type Rep FunctionToolCallOutput Source # | |||||
Defined in OpenAI.V1.Responses type Rep FunctionToolCallOutput = D1 ('MetaData "FunctionToolCallOutput" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "FunctionToolCallOutput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
data WebSearchToolCall Source #
Web search tool call output item (action is left generic for now)
Constructors
| WebSearchToolCall | |
Instances
| FromJSON WebSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser WebSearchToolCall # parseJSONList :: Value -> Parser [WebSearchToolCall] # | |||||
| ToJSON WebSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: WebSearchToolCall -> Value # toEncoding :: WebSearchToolCall -> Encoding # toJSONList :: [WebSearchToolCall] -> Value # toEncodingList :: [WebSearchToolCall] -> Encoding # omitField :: WebSearchToolCall -> Bool # | |||||
| Generic WebSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: WebSearchToolCall -> Rep WebSearchToolCall x # to :: Rep WebSearchToolCall x -> WebSearchToolCall # | |||||
| Show WebSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> WebSearchToolCall -> ShowS # show :: WebSearchToolCall -> String # showList :: [WebSearchToolCall] -> ShowS # | |||||
| type Rep WebSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses type Rep WebSearchToolCall = D1 ('MetaData "WebSearchToolCall" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "WebSearchToolCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebSearchAction))))) | |||||
data FileSearchToolCall Source #
File search tool call output item
Constructors
| FileSearchToolCall | |
Instances
| FromJSON FileSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser FileSearchToolCall # parseJSONList :: Value -> Parser [FileSearchToolCall] # | |||||
| ToJSON FileSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: FileSearchToolCall -> Value # toEncoding :: FileSearchToolCall -> Encoding # toJSONList :: [FileSearchToolCall] -> Value # toEncodingList :: [FileSearchToolCall] -> Encoding # omitField :: FileSearchToolCall -> Bool # | |||||
| Generic FileSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: FileSearchToolCall -> Rep FileSearchToolCall x # to :: Rep FileSearchToolCall x -> FileSearchToolCall # | |||||
| Show FileSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> FileSearchToolCall -> ShowS # show :: FileSearchToolCall -> String # showList :: [FileSearchToolCall] -> ShowS # | |||||
| type Rep FileSearchToolCall Source # | |||||
Defined in OpenAI.V1.Responses type Rep FileSearchToolCall = D1 ('MetaData "FileSearchToolCall" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "FileSearchToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "queries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Text)) :*: S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector FileSearchResult)))))) | |||||
data FileSearchResult Source #
File search result entry
Constructors
| FileSearchResult | |
Instances
| FromJSON FileSearchResult Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser FileSearchResult # parseJSONList :: Value -> Parser [FileSearchResult] # | |||||
| ToJSON FileSearchResult Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: FileSearchResult -> Value # toEncoding :: FileSearchResult -> Encoding # toJSONList :: [FileSearchResult] -> Value # toEncodingList :: [FileSearchResult] -> Encoding # omitField :: FileSearchResult -> Bool # | |||||
| Generic FileSearchResult Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: FileSearchResult -> Rep FileSearchResult x # to :: Rep FileSearchResult x -> FileSearchResult # | |||||
| Show FileSearchResult Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> FileSearchResult -> ShowS # show :: FileSearchResult -> String # showList :: [FileSearchResult] -> ShowS # | |||||
| type Rep FileSearchResult Source # | |||||
Defined in OpenAI.V1.Responses type Rep FileSearchResult = D1 ('MetaData "FileSearchResult" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "FileSearchResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))) | |||||
data CodeInterpreterToolCall Source #
Code interpreter tool call output item
Constructors
| CodeInterpreterToolCall | |
Instances
| FromJSON CodeInterpreterToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser CodeInterpreterToolCall # parseJSONList :: Value -> Parser [CodeInterpreterToolCall] # | |||||
| ToJSON CodeInterpreterToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: CodeInterpreterToolCall -> Value # toEncoding :: CodeInterpreterToolCall -> Encoding # toJSONList :: [CodeInterpreterToolCall] -> Value # | |||||
| Generic CodeInterpreterToolCall Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: CodeInterpreterToolCall -> Rep CodeInterpreterToolCall x # to :: Rep CodeInterpreterToolCall x -> CodeInterpreterToolCall # | |||||
| Show CodeInterpreterToolCall Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> CodeInterpreterToolCall -> ShowS # show :: CodeInterpreterToolCall -> String # showList :: [CodeInterpreterToolCall] -> ShowS # | |||||
| type Rep CodeInterpreterToolCall Source # | |||||
Defined in OpenAI.V1.Responses type Rep CodeInterpreterToolCall = D1 ('MetaData "CodeInterpreterToolCall" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "CodeInterpreterToolCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "container_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector CodeInterpreterOutput))))))) | |||||
data CodeInterpreterOutput Source #
Code interpreter tool call outputs
Instances
| FromJSON CodeInterpreterOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser CodeInterpreterOutput # parseJSONList :: Value -> Parser [CodeInterpreterOutput] # | |||||
| ToJSON CodeInterpreterOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: CodeInterpreterOutput -> Value # toEncoding :: CodeInterpreterOutput -> Encoding # toJSONList :: [CodeInterpreterOutput] -> Value # toEncodingList :: [CodeInterpreterOutput] -> Encoding # omitField :: CodeInterpreterOutput -> Bool # | |||||
| Generic CodeInterpreterOutput Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: CodeInterpreterOutput -> Rep CodeInterpreterOutput x # to :: Rep CodeInterpreterOutput x -> CodeInterpreterOutput # | |||||
| Show CodeInterpreterOutput Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> CodeInterpreterOutput -> ShowS # show :: CodeInterpreterOutput -> String # showList :: [CodeInterpreterOutput] -> ShowS # | |||||
| type Rep CodeInterpreterOutput Source # | |||||
Defined in OpenAI.V1.Responses type Rep CodeInterpreterOutput = D1 ('MetaData "CodeInterpreterOutput" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "CodeInterpreterOutput_Logs" 'PrefixI 'True) (S1 ('MetaSel ('Just "logs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "CodeInterpreterOutput_Image" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data WebSearchAction Source #
Web search action
Instances
| FromJSON WebSearchAction Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser WebSearchAction # parseJSONList :: Value -> Parser [WebSearchAction] # | |||||
| ToJSON WebSearchAction Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: WebSearchAction -> Value # toEncoding :: WebSearchAction -> Encoding # toJSONList :: [WebSearchAction] -> Value # toEncodingList :: [WebSearchAction] -> Encoding # omitField :: WebSearchAction -> Bool # | |||||
| Generic WebSearchAction Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: WebSearchAction -> Rep WebSearchAction x # to :: Rep WebSearchAction x -> WebSearchAction # | |||||
| Show WebSearchAction Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> WebSearchAction -> ShowS # show :: WebSearchAction -> String # showList :: [WebSearchAction] -> ShowS # | |||||
| type Rep WebSearchAction Source # | |||||
Defined in OpenAI.V1.Responses type Rep WebSearchAction = D1 ('MetaData "WebSearchAction" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "WebSearchAction_Search" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector WebSearchSource)))) :+: (C1 ('MetaCons "WebSearchAction_Open_Page" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :+: C1 ('MetaCons "WebSearchAction_Find" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
data WebSearchSource Source #
Web search action sources
Constructors
| WebSearchSource_URL | |
Instances
| FromJSON WebSearchSource Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser WebSearchSource # parseJSONList :: Value -> Parser [WebSearchSource] # | |||||
| ToJSON WebSearchSource Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: WebSearchSource -> Value # toEncoding :: WebSearchSource -> Encoding # toJSONList :: [WebSearchSource] -> Value # toEncodingList :: [WebSearchSource] -> Encoding # omitField :: WebSearchSource -> Bool # | |||||
| Generic WebSearchSource Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: WebSearchSource -> Rep WebSearchSource x # to :: Rep WebSearchSource x -> WebSearchSource # | |||||
| Show WebSearchSource Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> WebSearchSource -> ShowS # show :: WebSearchSource -> String # showList :: [WebSearchSource] -> ShowS # | |||||
| type Rep WebSearchSource Source # | |||||
Defined in OpenAI.V1.Responses type Rep WebSearchSource = D1 ('MetaData "WebSearchSource" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "WebSearchSource_URL" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data Annotation Source #
Output text annotation
Constructors
| Annotation_File_Citation | |
| Annotation_Url_Citation | |
| Annotation_Container_File_Citation | |
Fields
| |
| Annotation_File_Path | |
Instances
| FromJSON Annotation Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON Annotation Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: Annotation -> Value # toEncoding :: Annotation -> Encoding # toJSONList :: [Annotation] -> Value # toEncodingList :: [Annotation] -> Encoding # omitField :: Annotation -> Bool # | |||||
| Generic Annotation Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show Annotation Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> Annotation -> ShowS # show :: Annotation -> String # showList :: [Annotation] -> ShowS # | |||||
| type Rep Annotation Source # | |||||
Defined in OpenAI.V1.Responses type Rep Annotation = D1 ('MetaData "Annotation" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((C1 ('MetaCons "Annotation_File_Citation" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :+: C1 ('MetaCons "Annotation_Url_Citation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "start_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "end_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :+: (C1 ('MetaCons "Annotation_Container_File_Citation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "container_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "start_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "end_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :+: C1 ('MetaCons "Annotation_File_Path" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) | |||||
data ReasoningSummary Source #
Reasoning summary verbosity options.
Note: the ReasoningSummary_Concise option is only supported for
`computer-use-preview` models.
Instances
| FromJSON ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ReasoningSummary # parseJSONList :: Value -> Parser [ReasoningSummary] # | |||||
| ToJSON ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ReasoningSummary -> Value # toEncoding :: ReasoningSummary -> Encoding # toJSONList :: [ReasoningSummary] -> Value # toEncodingList :: [ReasoningSummary] -> Encoding # omitField :: ReasoningSummary -> Bool # | |||||
| Generic ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: ReasoningSummary -> Rep ReasoningSummary x # to :: Rep ReasoningSummary x -> ReasoningSummary # | |||||
| Show ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ReasoningSummary -> ShowS # show :: ReasoningSummary -> String # showList :: [ReasoningSummary] -> ShowS # | |||||
| Eq ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses Methods (==) :: ReasoningSummary -> ReasoningSummary -> Bool # (/=) :: ReasoningSummary -> ReasoningSummary -> Bool # | |||||
| type Rep ReasoningSummary Source # | |||||
Defined in OpenAI.V1.Responses type Rep ReasoningSummary = D1 ('MetaData "ReasoningSummary" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "ReasoningSummary_Auto" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReasoningSummary_Concise" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReasoningSummary_Detailed" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Configuration options for reasoning models (`gpt-5` and o-series only).
Constructors
| Reasoning | |
Fields
| |
Instances
| FromJSON Reasoning Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON Reasoning Source # | |||||
| Generic Reasoning Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show Reasoning Source # | |||||
| Eq Reasoning Source # | |||||
| type Rep Reasoning Source # | |||||
Defined in OpenAI.V1.Responses type Rep Reasoning = D1 ('MetaData "Reasoning" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "Reasoning" 'PrefixI 'True) (S1 ('MetaSel ('Just "effort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReasoningEffort)) :*: (S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReasoningSummary)) :*: S1 ('MetaSel ('Just "generate_summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReasoningSummary))))) | |||||
_Reasoning :: Reasoning Source #
Default reasoning configuration
data ReasoningItem Source #
Reasoning item produced by reasoning models
Constructors
| ReasoningItem | |
Fields
| |
Instances
| FromJSON ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ReasoningItem # parseJSONList :: Value -> Parser [ReasoningItem] # | |||||
| ToJSON ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ReasoningItem -> Value # toEncoding :: ReasoningItem -> Encoding # toJSONList :: [ReasoningItem] -> Value # toEncodingList :: [ReasoningItem] -> Encoding # omitField :: ReasoningItem -> Bool # | |||||
| Generic ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ReasoningItem -> ShowS # show :: ReasoningItem -> String # showList :: [ReasoningItem] -> ShowS # | |||||
| Eq ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses Methods (==) :: ReasoningItem -> ReasoningItem -> Bool # (/=) :: ReasoningItem -> ReasoningItem -> Bool # | |||||
| type Rep ReasoningItem Source # | |||||
Defined in OpenAI.V1.Responses type Rep ReasoningItem = D1 ('MetaData "ReasoningItem" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "ReasoningItem" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "encrypted_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector SummaryPart))) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector ReasoningText))) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) | |||||
data SummaryPart Source #
Reasoning summary part
Constructors
| Summary_Text | |
Instances
| FromJSON SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| ToJSON SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: SummaryPart -> Value # toEncoding :: SummaryPart -> Encoding # toJSONList :: [SummaryPart] -> Value # toEncodingList :: [SummaryPart] -> Encoding # omitField :: SummaryPart -> Bool # | |||||
| Generic SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> SummaryPart -> ShowS # show :: SummaryPart -> String # showList :: [SummaryPart] -> ShowS # | |||||
| Eq SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses | |||||
| type Rep SummaryPart Source # | |||||
Defined in OpenAI.V1.Responses type Rep SummaryPart = D1 ('MetaData "SummaryPart" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "Summary_Text" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data ReasoningText Source #
Reasoning text part
Constructors
| Reasoning_Text | |
Instances
| FromJSON ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ReasoningText # parseJSONList :: Value -> Parser [ReasoningText] # | |||||
| ToJSON ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ReasoningText -> Value # toEncoding :: ReasoningText -> Encoding # toJSONList :: [ReasoningText] -> Value # toEncodingList :: [ReasoningText] -> Encoding # omitField :: ReasoningText -> Bool # | |||||
| Generic ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ReasoningText -> ShowS # show :: ReasoningText -> String # showList :: [ReasoningText] -> ShowS # | |||||
| Eq ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses Methods (==) :: ReasoningText -> ReasoningText -> Bool # (/=) :: ReasoningText -> ReasoningText -> Bool # | |||||
| type Rep ReasoningText Source # | |||||
Defined in OpenAI.V1.Responses type Rep ReasoningText = D1 ('MetaData "ReasoningText" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "Reasoning_Text" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data ReasoningEffort Source #
Constrains effort on reasoning for reasoning models.
Defaults to ReasoningEffort_Medium when omitted. Reducing the effort can
result in faster responses with fewer reasoning tokens. The `gpt-5-pro`
model currently only supports ReasoningEffort_High.
Instances
| FromJSON ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ReasoningEffort # parseJSONList :: Value -> Parser [ReasoningEffort] # | |||||
| ToJSON ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ReasoningEffort -> Value # toEncoding :: ReasoningEffort -> Encoding # toJSONList :: [ReasoningEffort] -> Value # toEncodingList :: [ReasoningEffort] -> Encoding # omitField :: ReasoningEffort -> Bool # | |||||
| Generic ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: ReasoningEffort -> Rep ReasoningEffort x # to :: Rep ReasoningEffort x -> ReasoningEffort # | |||||
| Show ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ReasoningEffort -> ShowS # show :: ReasoningEffort -> String # showList :: [ReasoningEffort] -> ShowS # | |||||
| Eq ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses Methods (==) :: ReasoningEffort -> ReasoningEffort -> Bool # (/=) :: ReasoningEffort -> ReasoningEffort -> Bool # | |||||
| type Rep ReasoningEffort Source # | |||||
Defined in OpenAI.V1.Responses type Rep ReasoningEffort = D1 ('MetaData "ReasoningEffort" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((C1 ('MetaCons "ReasoningEffort_Minimal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReasoningEffort_Low" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ReasoningEffort_Medium" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReasoningEffort_High" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
type ServiceTier = Text Source #
Specifies the processing tier used for the request
data ResponseStreamEvent Source #
Streaming events for /v1/responses
Constructors
| ResponseCreatedEvent | |
Fields | |
| ResponseInProgressEvent | |
Fields | |
| ResponseCompletedEvent | |
Fields | |
| ResponseFailedEvent | |
Fields | |
| ResponseOutputItemAddedEvent | |
Fields
| |
| ResponseOutputItemDoneEvent | |
Fields | |
| ResponseContentPartAddedEvent | |
Fields
| |
| ResponseContentPartDoneEvent | |
Fields
| |
| ResponseTextDeltaEvent | |
Fields
| |
| ResponseTextDoneEvent | |
Fields
| |
| ResponseOutputTextAnnotationAddedEvent | |
Fields
| |
| ResponseWebSearchCallInProgressEvent | |
Fields
| |
| ResponseWebSearchCallSearchingEvent | |
Fields
| |
| ResponseWebSearchCallCompletedEvent | |
Fields
| |
| ResponseFileSearchCallInProgressEvent | |
Fields
| |
| ResponseFileSearchCallSearchingEvent | |
Fields
| |
| ResponseFileSearchCallCompletedEvent | |
Fields
| |
| ResponseCodeInterpreterCallInProgressEvent | |
Fields
| |
| ResponseCodeInterpreterCallInterpretingEvent | |
Fields
| |
| ResponseCodeInterpreterCallCompletedEvent | |
Fields
| |
| ResponseCodeInterpreterCallCodeDeltaEvent | |
Fields
| |
| ResponseCodeInterpreterCallCodeDoneEvent | |
Fields
| |
| ErrorEvent | |
Fields
| |
Instances
| FromJSON ResponseStreamEvent Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ResponseStreamEvent # parseJSONList :: Value -> Parser [ResponseStreamEvent] # | |||||
| ToJSON ResponseStreamEvent Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ResponseStreamEvent -> Value # toEncoding :: ResponseStreamEvent -> Encoding # toJSONList :: [ResponseStreamEvent] -> Value # toEncodingList :: [ResponseStreamEvent] -> Encoding # omitField :: ResponseStreamEvent -> Bool # | |||||
| Generic ResponseStreamEvent Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: ResponseStreamEvent -> Rep ResponseStreamEvent x # to :: Rep ResponseStreamEvent x -> ResponseStreamEvent # | |||||
| Show ResponseStreamEvent Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ResponseStreamEvent -> ShowS # show :: ResponseStreamEvent -> String # showList :: [ResponseStreamEvent] -> ShowS # | |||||
| type Rep ResponseStreamEvent Source # | |||||
Defined in OpenAI.V1.Responses type Rep ResponseStreamEvent = D1 ('MetaData "ResponseStreamEvent" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) ((((C1 ('MetaCons "ResponseCreatedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResponseObject) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :+: C1 ('MetaCons "ResponseInProgressEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResponseObject) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: (C1 ('MetaCons "ResponseCompletedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResponseObject) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :+: (C1 ('MetaCons "ResponseFailedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResponseObject) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :+: C1 ('MetaCons "ResponseOutputItemAddedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OutputItem) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))) :+: ((C1 ('MetaCons "ResponseOutputItemDoneEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :+: (C1 ('MetaCons "ResponseContentPartAddedEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "content_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "part") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OutputContent) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) :+: C1 ('MetaCons "ResponseContentPartDoneEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "content_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "part") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OutputContent) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))) :+: (C1 ('MetaCons "ResponseTextDeltaEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "content_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "delta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) :+: (C1 ('MetaCons "ResponseTextDoneEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)) :*: (S1 ('MetaSel ('Just "content_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) :+: C1 ('MetaCons "ResponseOutputTextAnnotationAddedEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "content_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :*: (S1 ('MetaSel ('Just "annotation_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "annotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Annotation) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))))) :+: (((C1 ('MetaCons "ResponseWebSearchCallInProgressEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: (C1 ('MetaCons "ResponseWebSearchCallSearchingEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: C1 ('MetaCons "ResponseWebSearchCallCompletedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))))) :+: (C1 ('MetaCons "ResponseFileSearchCallInProgressEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: (C1 ('MetaCons "ResponseFileSearchCallSearchingEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: C1 ('MetaCons "ResponseFileSearchCallCompletedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))) :+: ((C1 ('MetaCons "ResponseCodeInterpreterCallInProgressEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: (C1 ('MetaCons "ResponseCodeInterpreterCallInterpretingEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: C1 ('MetaCons "ResponseCodeInterpreterCallCompletedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))))) :+: (C1 ('MetaCons "ResponseCodeInterpreterCallCodeDeltaEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "delta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: (C1 ('MetaCons "ResponseCodeInterpreterCallCodeDoneEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "output_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "item_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) :+: C1 ('MetaCons "ErrorEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "error_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "error_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "error_param") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "error_sequence_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))))))) | |||||
data ResponseObject Source #
Response object
Constructors
| ResponseObject | |
Fields
| |
Instances
| FromJSON ResponseObject Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ResponseObject # parseJSONList :: Value -> Parser [ResponseObject] # | |||||
| ToJSON ResponseObject Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ResponseObject -> Value # toEncoding :: ResponseObject -> Encoding # toJSONList :: [ResponseObject] -> Value # toEncodingList :: [ResponseObject] -> Encoding # omitField :: ResponseObject -> Bool # | |||||
| Generic ResponseObject Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: ResponseObject -> Rep ResponseObject x # to :: Rep ResponseObject x -> ResponseObject # | |||||
| Show ResponseObject Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ResponseObject -> ShowS # show :: ResponseObject -> String # showList :: [ResponseObject] -> ShowS # | |||||
| type Rep ResponseObject Source # | |||||
Defined in OpenAI.V1.Responses type Rep ResponseObject = D1 ('MetaData "ResponseObject" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "ResponseObject" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "object") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "created_at") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))))) :*: ((S1 ('MetaSel ('Just "incomplete_details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: (S1 ('MetaSel ('Just "instructions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Model))) :*: (S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector OutputItem)) :*: (S1 ('MetaSel ('Just "parallel_tool_calls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "previous_response_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "reasoning") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Reasoning)) :*: S1 ('MetaSel ('Just "service_tier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ServiceTier))) :*: (S1 ('MetaSel ('Just "store") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "temperature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "tool_choice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ToolChoice))))) :*: ((S1 ('MetaSel ('Just "tools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Vector Tool))) :*: (S1 ('MetaSel ('Just "top_p") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "truncation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "usage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ResponseUsage)) :*: (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Text))))))))) | |||||
data ResponseUsage Source #
Usage statistics for the response request
Constructors
| ResponseUsage | |
Instances
| FromJSON ResponseUsage Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser ResponseUsage # parseJSONList :: Value -> Parser [ResponseUsage] # | |||||
| ToJSON ResponseUsage Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: ResponseUsage -> Value # toEncoding :: ResponseUsage -> Encoding # toJSONList :: [ResponseUsage] -> Value # toEncodingList :: [ResponseUsage] -> Encoding # omitField :: ResponseUsage -> Bool # | |||||
| Generic ResponseUsage Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
| |||||
| Show ResponseUsage Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> ResponseUsage -> ShowS # show :: ResponseUsage -> String # showList :: [ResponseUsage] -> ShowS # | |||||
| type Rep ResponseUsage Source # | |||||
Defined in OpenAI.V1.Responses type Rep ResponseUsage = D1 ('MetaData "ResponseUsage" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "ResponseUsage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "input_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "input_tokens_details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputTokensDetails)) :*: (S1 ('MetaSel ('Just "output_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "output_tokens_details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OutputTokensDetails) :*: S1 ('MetaSel ('Just "total_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))))) | |||||
data InputTokensDetails Source #
Constructors
| InputTokensDetails | |
Fields | |
Instances
| FromJSON InputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser InputTokensDetails # parseJSONList :: Value -> Parser [InputTokensDetails] # | |||||
| ToJSON InputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: InputTokensDetails -> Value # toEncoding :: InputTokensDetails -> Encoding # toJSONList :: [InputTokensDetails] -> Value # toEncodingList :: [InputTokensDetails] -> Encoding # omitField :: InputTokensDetails -> Bool # | |||||
| Generic InputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: InputTokensDetails -> Rep InputTokensDetails x # to :: Rep InputTokensDetails x -> InputTokensDetails # | |||||
| Show InputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> InputTokensDetails -> ShowS # show :: InputTokensDetails -> String # showList :: [InputTokensDetails] -> ShowS # | |||||
| type Rep InputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses type Rep InputTokensDetails = D1 ('MetaData "InputTokensDetails" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "InputTokensDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "cached_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) | |||||
data OutputTokensDetails Source #
Constructors
| OutputTokensDetails | |
Fields | |
Instances
| FromJSON OutputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods parseJSON :: Value -> Parser OutputTokensDetails # parseJSONList :: Value -> Parser [OutputTokensDetails] # | |||||
| ToJSON OutputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods toJSON :: OutputTokensDetails -> Value # toEncoding :: OutputTokensDetails -> Encoding # toJSONList :: [OutputTokensDetails] -> Value # toEncodingList :: [OutputTokensDetails] -> Encoding # omitField :: OutputTokensDetails -> Bool # | |||||
| Generic OutputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Associated Types
Methods from :: OutputTokensDetails -> Rep OutputTokensDetails x # to :: Rep OutputTokensDetails x -> OutputTokensDetails # | |||||
| Show OutputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses Methods showsPrec :: Int -> OutputTokensDetails -> ShowS # show :: OutputTokensDetails -> String # showList :: [OutputTokensDetails] -> ShowS # | |||||
| type Rep OutputTokensDetails Source # | |||||
Defined in OpenAI.V1.Responses type Rep OutputTokensDetails = D1 ('MetaData "OutputTokensDetails" "OpenAI.V1.Responses" "openai-2.2.1-FjXYHvgDuLi5dBzIG7AGPx" 'False) (C1 ('MetaCons "OutputTokensDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "reasoning_tokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural))) | |||||
Constants
statusIncomplete :: Text Source #
Status constants for function call outputs
statusCompleted :: Text Source #
Status constants for function call outputs
Servant
type API = "responses" :> ((ReqBody '[JSON] CreateResponse :> Post '[JSON] ResponseObject) :<|> ((Capture "response_id" Text :> Get '[JSON] ResponseObject) :<|> ((Capture "response_id" Text :> ("cancel" :> Post '[JSON] ResponseObject)) :<|> (Capture "response_id" Text :> ("input_items" :> Get '[JSON] (ListOf InputItem)))))) Source #
Servant API for /v1/responses