code: func New(dir string, fw ChoriaProvider) (aa *AAgent, err error) {
  	notifier, err := notifier.New(fw)
  	if err != nil {
  		return nil, errors.Wrapf(err, "could not create notifier")
  	}
  
  	return &AAgent{
  		fw:       fw,
  		logger:   fw.Logger("aagent"),
  		source:   dir,
  		machines: []*managedMachine{},
  		notifier: notifier,
  	}, nil
  }
docs: // New creates a new instance of the choria autonomous agent host