class OpenAI::FunctionExecutor
- OpenAI::FunctionExecutor
- Reference
- Object
Overview
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
Defined in:
openai/api/chat.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #add(name : String, description : String | Nil, clz : U, &block : Callback) forall U
- #execute(call : ChatFunctionCall)
- #execute(calls : Array(ChatToolCall))
- #functions : Array(ChatFunction)
- #tools : Array(ChatTool)