class

OpenAI::FunctionExecutor

Inherits Reference / Object

OpenAI::FunctionExecutor is a helper class which try to hide the details of object casting, JSON Schema generation Being able to deal any User defined Types, it requires ADT to extend OpenAI::FuncMarker a marker module. And requires Block to accept and return Types as JSON::Serializable

Constants

Log = ::Log.for(self)

Constructors

Instance methods

add(name : String, description : String | Nil, clz : U, &block : Callback) forall U
Source
execute(call : ChatFunctionCall)
Source
execute(calls : Array(ChatToolCall))
Source
functions
Source
tools
Source

Nested types