Moldable Chat: Searching code
Building a search filter out of a natural language query:
c := GtLChat new
markdownResponse;
addResponseFormatForMagrite: GtLPharoScript named: 'PharoScript';
gtPageExplanation: 'Querying with GT search filters by example';
sendMarkdown: 'Provide a PharoScript with a search for methods that are in {{gtClass:BlElement}} and also refer to `assert:description:`.'
Wrap the chat in a tool to be used in another chat:
c := GtLChat new
markdownResponse;
tools: (GtLTools withAll: {GtLToolForChatMethodSearch new});
sendMarkdown: 'What are a few references of {{gtClass:BlElement}} that also refer to `assert:description:`.'