How to implement bind_tools to custom LLM from huggingface pipeline(Llama-3) for a custom agent

Many models seem to require an unofficial chat template for function calling (tool calling).