Module: LLM::OpenAI::Response::Responds

Defined in:
lib/llm/providers/openai/response/responds.rb

Instance Method Summary collapse

Instance Method Details

#choicesObject



7
# File 'lib/llm/providers/openai/response/responds.rb', line 7

def choices = body.output

#outputsObject



6
# File 'lib/llm/providers/openai/response/responds.rb', line 6

def outputs = [format_message]

#response_idObject



5
# File 'lib/llm/providers/openai/response/responds.rb', line 5

def response_id = respond_to?(:response) ? response["id"] : id

#toolsObject



8
# File 'lib/llm/providers/openai/response/responds.rb', line 8

def tools = output.select { _1.type == "function_call" }