getLiveFunctions method

Retrieves a list of all function declarations available to the AI.

Use this to inspect what tools the AI is currently capable of using.

Implementation

Future<AppResponse<TriggerResponse<FunctionDeclaration>>> getLiveFunctions() {
  final payload = TriggerParse(
    trigger: Trigger.getDeclaration,
    functionCall: null,
  );
  return _sendTrigger<FunctionDeclaration>(
    payload: payload,
    fromJsonT: (json) => FunctionDeclaration.fromJson(json),
  );
}