For now the composition API implementation is not in ROS2 base repos, so we use the customized rclpy, ros2cli for demonstration. I assume you have a underlay ready to work, I'd personally recommend ...
This example shows how to create a choreographed composition of microservices by using BPMN diagrams. To do so, the supporting infrastructure available in the following Github repository is used: ...