Moldable Chat: Generating LLM tools

A key idea behind the Moldable Chat is to enable developers to contextualize the LLM interaction. In this context, an interesting case for code generation is creating specific tools for the LLM. A tool is essentially a function that receives arguments and returns a result (see Moldable Chat: Tool-augmented interaction).

The structure of such tool is given. And we can use an explanation, like LLM tools by example, for the LLM to mirror for a new tool. The example below shows how that is achievable for a simple tool:

GtL gt 
	gtPageExplanation: 'LLM tools by example';
	sendMarkdown: 'Build an LLM tool for adding two numbers. Create dedicated examples. Ensure they are green. Package the classes in a package called {{gtPackage:MyLlmPackage}}. Use {{gtClass:GtLMagritteToolForMethodsSource}} as blueprint.'