code: def agent_version(self):
          
          version = self.safe_data['agent-status']['version']
          if version:
              return client.Number.from_json(version)
          else:
              return None
docs: Get the version of the Juju machine agent.
  
          May return None if the agent is not yet available.