def create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil)
      raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?

      raise ArgumentError.new("entity must be provided") if entity.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("conversation", "V1", "create_entity")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version
      }

      data = {
        "entity" => entity,
        "description" => description,
        "metadata" => metadata,
        "fuzzy_match" => fuzzy_match,
        "values" => values
      }

      method_url = "/v1/workspaces/%s/entities" % [ERB::Util.url_encode(workspace_id)]

      response = request(
        method: "POST",
        url: method_url,
        headers: headers,
        params: params,
        json: data,
        accept_json: true
      )
      response
    end
def create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil)
      raise ArgumentError.new("workspace_id must be provided") if workspace_id.nil?

      raise ArgumentError.new("entity must be provided") if entity.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("conversation", "V1", "create_entity")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version
      }

      data = {
        "entity" => entity,
        "description" => description,
        "metadata" => metadata,
        "fuzzy_match" => fuzzy_match,
        "values" => values
      }

      method_url = "/v1/workspaces/%s/entities" % [ERB::Util.url_encode(workspace_id)]

      response = request(
        method: "POST",
        url: method_url,
        headers: headers,
        params: params,
        json: data,
        accept_json: true
      )
      response
    end
Entities


 @!method create_entity(workspace_id:, entity:, description: nil, metadata: nil, fuzzy_match: nil, values: nil)
 Create entity.
 Create a new entity, or enable a system entity.

   This operation is limited to 1000 requests per 30 minutes. For more information,
   see **Rate limiting**.
 @param workspace_id [String] Unique identifier of the workspace.
 @param entity [String] The name of the entity. This string must conform to the following restrictions:
   - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
   - It must be no longer than 64 characters.

   If you specify an entity name beginning with the reserved prefix `sys-`, it must
   be the name of a system entity that you want to enable. (Any entity content
   specified with the request is ignored.).
 @param description [String] The description of the entity. This string cannot contain carriage return,
   newline, or tab characters, and it must be no longer than 128 characters.
 @param metadata [Hash] Any metadata related to the entity.
 @param fuzzy_match [Boolean] Whether to use fuzzy matching for the entity.
 @param values [Array[CreateValue]] An array of objects describing the entity values.
 @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.