Building Custom Tools for LLM Agents

This is a companion discussion topic for the original entry at

Circumference tool was taking the action inout as a string instead of a json and we need to manually change the prompt to work.
Image captioning tool also when configured still returns output as a number.
We may need to update the code with the updated version to get the expected output. Please update