Package com.polarion.alm.tracker.ai
Interface IUseCaseResult
public interface IUseCaseResult
- Since:
- 3.26.6
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enumMore specific error codes may be added in the future; clients should be prepared to handle unknown values. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the content of the response message from the model if the use case execution succeeds.error()If the use case execution fails, it returns the error details.role()Returns the role (such as "assistant" or "system") associated with the response message if the use case execution succeeds.
-
Method Details
-
role
Returns the role (such as "assistant" or "system") associated with the response message if the use case execution succeeds. If the execution fails (seeerror()), it returns an empty string. -
content
Returns the content of the response message from the model if the use case execution succeeds. If the execution fails (seeerror()), it returns an empty string. -
error
If the use case execution fails, it returns the error details.
-