struct AI::OpenAI::Responses::PrepareToolsResult

Overview

Result of preparing tools for Responses API

Defined in:

ai/openai/responses/openai_responses_prepare_tools.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tools : Array(Hash(String, JSON::Any)) | Nil = nil, tool_choice : ResponsesToolChoice = nil, tool_warnings : Array(Provider::Shared::Warning) = [] of Provider::Shared::Warning) #

[View source]

Instance Method Detail

def tool_choice : ResponsesToolChoice #

[View source]
def tool_warnings : Array(Provider::Shared::Warning) #

[View source]
def tools : Array(Hash(String, JSON::Any)) | Nil #

[View source]