class

LLM::Function::Runner

Inherits Reference < Object

This defines the runner that is instantiated to execute the function.

Instance methods

execute(args : JSON::Any) : String | Reply

Implement this method to handle the LLM function call, and return

  • EITHER a String with the JSON value,
  • OR a Reply if you need to return attachments.
Source