View Source ExOpenAI.Components.CustomToolChatCompletions (ex_openai.ex v2.0.0-beta2)
A custom tool that processes input using a specified format.
Fields
:custom- required -{:%{}, [], [{{:optional, [], [:description]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:optional, [], [:format]}, {:|, [], [{:%{}, [], [{{:required, [], [:type]}, :text}]}, {:%{}, [], [{{:required, [], [:grammar]}, {:%{}, [], [{{:required, [], [:definition]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:required, [], [:syntax]}, {:|, [], [:lark, :regex]}}]}}, {{:required, [], [:type]}, :grammar}]}]}}, {{:required, [], [:name]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}]}
Properties of the custom tool.:type- required -:custom
The type of the custom tool. Alwayscustom.
Allowed values:"custom"