Method: OpenApiOpenAIClient::ChatCompletionRequestToolMessage#hash

Defined in:
lib/openapi_openai/models/chat_completion_request_tool_message.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



172
173
174
# File 'lib/openapi_openai/models/chat_completion_request_tool_message.rb', line 172

def hash
  [role, content, tool_call_id].hash
end