openai-1.0.0: Servant bindings to OpenAI
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenAI.V1.ToolCall

Contents

Description

The ToolCall type

Synopsis

Types

data ToolCall Source #

Tools called by the model

Constructors

ToolCall_Function 

Fields

Instances

Instances details
FromJSON ToolCall Source # 
Instance details

Defined in OpenAI.V1.ToolCall

ToJSON ToolCall Source # 
Instance details

Defined in OpenAI.V1.ToolCall

Generic ToolCall Source # 
Instance details

Defined in OpenAI.V1.ToolCall

Associated Types

type Rep ToolCall :: Type -> Type #

Methods

from :: ToolCall -> Rep ToolCall x #

to :: Rep ToolCall x -> ToolCall #

Show ToolCall Source # 
Instance details

Defined in OpenAI.V1.ToolCall

type Rep ToolCall Source # 
Instance details

Defined in OpenAI.V1.ToolCall

type Rep ToolCall = D1 ('MetaData "ToolCall" "OpenAI.V1.ToolCall" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "ToolCall_Function" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "function") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Function)))

data Function Source #

A called function

Constructors

Function 

Fields

Instances

Instances details
FromJSON Function Source # 
Instance details

Defined in OpenAI.V1.ToolCall

ToJSON Function Source # 
Instance details

Defined in OpenAI.V1.ToolCall

Generic Function Source # 
Instance details

Defined in OpenAI.V1.ToolCall

Associated Types

type Rep Function :: Type -> Type #

Methods

from :: Function -> Rep Function x #

to :: Rep Function x -> Function #

Show Function Source # 
Instance details

Defined in OpenAI.V1.ToolCall

type Rep Function Source # 
Instance details

Defined in OpenAI.V1.ToolCall

type Rep Function = D1 ('MetaData "Function" "OpenAI.V1.ToolCall" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "Function" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))