Class AiApi
java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.AiApi
AI related API calls. These calls require a BIM.works instance with AI enabled.
Note AI integration is still in development and this API should be considered in beta stage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontextToAction
(String text, String transcription, Set<UUID> versionUuids, QueryMainType mainType) Convert natural language to a BIM.works Action.Methods inherited from class nl.bimbase.bimworks.client.apis.SubApi
getBimWorksClient
-
Constructor Details
-
AiApi
-
-
Method Details
-
textToAction
public TextToActionResponse textToAction(String text, String transcription, Set<UUID> versionUuids, QueryMainType mainType) throws InterruptedException, BimWorksException Convert natural language to a BIM.works Action. Conversions generally work best when the natural language is in English, but other common languages usually work pretty well too.- Parameters:
text
- The input text.transcription
- The transcribed input, optional. This can be useful to supply when the original input text was in a different language (for example when using speech-to-text).versionUuids
- The models to use as additional input to the conversion. Can be left null in most cases.mainType
- An optional QueryMainType allowing you to indicate that you are only interested in results of a certain type- Returns:
- The response. Currently 3 different types can be returned:
- QUERY3 (can be executed using
BimApi.query(String, java.util.Set)
- BVL (can be resolved usingBimApi.resolveBvl(String, java.util.Set)
) - CHECK3 (to be further implemented) - Throws:
InterruptedException
BimWorksException
-