botserver/templates/llm-tools.gbai/llm-tools.gbdialog/get-price.bas

10 lines
360 B
QBasic
Raw Normal View History

2024-09-04 00:18:19 -03:00
PARAM product AS string LIKE fax DESCRIPTION "Required name of the item you want to inquire about."
2024-09-11 21:11:38 -03:00
DESCRIPTION "Whenever someone ask for a price, call this tool and return the price of the specified product name."
2024-09-04 00:18:19 -03:00
price = -1
productRecord = FIND "products.csv", "name = ${product}"
IF (productRecord) THEN
price = productRecord.price
END IF
RETURN price