Chaining without any frameworks

How might one chain AI Agents together without using a framework such as langGraph or crew.ai? Creating a single agent in Python seems way simpler by just using some simple boiler plate code of your own (Python AI for beginners week/course 4 had some good examples) but I don’t know how I would go about chaining them without the frameworks.

Any ideas or suggestions?