Example (demo1) implementation of https://arxiv.org/pdf/2402.03620.pdf with tool using-graph demo (demo2) showing that this is simliar to the pre-existing tool selection of langchain/langgraph.
Adapted from https://github.com/langchain-ai/langgraph/blob/main/examples/self-discover/self-discover.ipynb and https://github.com/langchain-ai/langgraph?tab=readme-ov-file