def get_artifacts(self, agent_name=None):
        """Get all artifacts or all artifacts published by a specific agent.

        :param str agent_name:
            Optional. Name of the agent which artifacts are returned.

        :returns: All artifacts or all artifacts published by the agent.
        :rtype: list
        """
        if agent_name is not None:
            return [a for a in self.artifacts if agent_name == a.creator]
        return self.artifacts
Get all artifacts or all artifacts published by a specific agent.

        :param str agent_name:
            Optional. Name of the agent which artifacts are returned.

        :returns: All artifacts or all artifacts published by the agent.
        :rtype: list