IsCommandAvailable method (LLMReq - Java)

Returns True if the given command is available to use by the LLMRequest Completion method.

Defined in

LLMReq

Data type

boolean

Syntax

public boolean LLMReq.isCommandAvailable(String server, String command)

throws NotesException

Parameters

String server

The Domino Server IQ name that is needed to send the request. If empty, the request will be routed to the Domino IQ server configured to service the command. For more information on Domino IQ server configuration, see Enabling Domino IQ servers.

String command

The name of a command document defined in the Domino IQ configuration database. The command document specifies a system prompt that guides the LLM behavior and responses.

boolean suppressErrors

It is an optional parameter, if true, the query will suppress (not throw exception) if an internal notes error happen, only return false value.

Legal value

true if the command is available for Domino IQ.

false if the command is not available for Domino IQ.

Usage

This method throws a Notes exception if the availability of a request can not be determined due to lower-level failures you can suppress the exception by passing true value to suppressErrors parameter.

If your agent uses this method on Notes Client, make sure that Notes Client will cache the command list until it is restarted. To ensure the method checks the updated command list, you need to restart Notes Client after making any updates.