Module: LLM::OpenAI::Response::Responds
- Defined in:
- lib/llm/providers/openai/response/responds.rb
Instance Method Summary collapse
Instance Method Details
#choices ⇒ Object
7 |
# File 'lib/llm/providers/openai/response/responds.rb', line 7 def choices = body.output |
#outputs ⇒ Object
6 |
# File 'lib/llm/providers/openai/response/responds.rb', line 6 def outputs = [] |
#response_id ⇒ Object
5 |
# File 'lib/llm/providers/openai/response/responds.rb', line 5 def response_id = respond_to?(:response) ? response["id"] : id |
#tools ⇒ Object
8 |
# File 'lib/llm/providers/openai/response/responds.rb', line 8 def tools = output.select { _1.type == "function_call" } |