com.polarion.alm.tracker.ai.IUseCaseBuilder


METHODS
Modifiers and TypeNameDescription
IUseCaseBuilder model(String) Specifies the AI model to be used for the use case. If not called, the default model will be used, if available.
IUseCaseBuilder message(String,String) Adds a message to the use case. Can be called multiple times to add more than one message.

The role and content can contain placeholders for input parameters in the {@code $[name]} format. Parameter values are supplied when executing the use case, see {@link IUseCaseRequest#parameter(String,String)} .

IUseCaseBuilder responseFormatText() Sets the response format to plain text. This is the default format.
IUseCaseBuilder responseFormatJson() Sets the response format to JSON. The response will be returned as a JSON object.
IUseCaseBuilder responseFormatJsonSchema(String) Sets the response format to JSON Schema. The response should comply with the provided JSON schema.
IUseCase build() Finishes the use case definition.

Back to Index