You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: related_agents.rb
    path of file: ./repos/archivesspace/backend/app/model/mixins
    
    the code of the file until where you have to start completion: require_relative 'directional_relationships'

module RelatedAgents
  extend JSONModel

  def self.included(base)
    base.include(DirectionalRelationships)

    base.define_directional_relationship(:name => :related_agents,
                                         :json_property => 'related_agents',
                                         :contains_references_to_types => proc {
                                           AgentManager.registered_agents.map {|a| a[:model]}
                                         },
                                         :class_callback => proc {|clz|
                                           clz.instance_eval do
                                             include DynamicEnums
                                             uses_enums({
                                                          :property => 'relator',
                                                          :uses_enum => %w[agent_relationship_associative_relator
                                                                           agent_relationship_earlierlater_relator
                                                                           agent_relationship_parentchild_relator
                                                                           agent_relationship_subordinatesuperior_relator
                                                                           agent_relationship_identity_relator
                                                                           agent_relationship_hierarchical_relator
                        
    
  def self.included(base)
    base.include(DirectionalRelationships)

    base.define_directional_relationship(:name => :related_agents,
                                         :json_property => 'related_agents',
                                         :contains_references_to_types => proc {
                                           AgentManager.registered_agents.map {|a| a[:model]}
                                         },
                                         :class_callback => proc {|clz|
                                           clz.instance_eval do
                                             include DynamicEnums
                                             uses_enums({
                                                          :property => 'relator',
                                                          :uses_enum => %w[agent_relationship_associative_relator
                                                                           agent_relationship_earlierlater_relator
                                                                           agent_relationship_parentchild_relator
                                                                           agent_relationship_subordinatesuperior_relator
                                                                           agent_relationship_identity_relator
                                                                           agent_relationship_hierarchical_relator
                                                                           agent_relationship_temporal_relator
                                                                           agent_relationship_family_relator]
                                                        },
                                                        {
                                                          :property => 'specific_relator',
                                                          :uses_enum => 'agent_relationship_specific_relator'
                                                        })
                                           end
                                           RelatedAgents.set_up_date_record_handling(clz)
                                         })
  end