AiApi
CLASS in nl.bimbase.bimworks.client.apis.
API catalogue · nl.bimbase.bimworks.client.apis · CLASS
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.
Inheritance and interfaces#
Members#
| Member | Kind | Description |
|---|---|---|
| AiApi(BimWorksClient) | CONSTRUCTOR | |
| textToAction(String, String, Set<UUID>, QueryMainType) | METHOD | Convert natural language to a BIM.works Action. Conversions generally work best when the natural language is in English, but other common languages usually w… |
AiApi(BimWorksClient)#
Java#
public AiApi(nl.bimbase.bimworks.client.BimWorksClient bimWorksClient)Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient |
textToAction(String, String, Set<UUID>, QueryMainType)#
Java#
public nl.bimbase.bimworks.client.apis.TextToActionResponse textToAction(java.lang.String text, java.lang.String transcription, java.util.Set<java.util.UUID> versionUuids, nl.bimbase.bimworks.client.apis.QueryMainType mainType) throws java.lang.InterruptedException, nl.bimbase.bimworks.client.BimWorksExceptionConvert 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#
| Name | Type | Description |
|---|---|---|
text |
java.lang.String |
The input text. |
transcription |
java.lang.String |
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 |
java.util.Set<java.util.UUID> |
The models to use as additional input to the conversion. Can be left null in most cases. |
mainType |
QueryMainType | 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 using BimApi#resolveBvl(String, java.util.Set))
- CHECK3 (to be further implemented)
Exceptions#
InterruptedException—BimWorksException—
Inherited members#
java.lang.Object#equals(java.lang.Object)java.lang.Object#toString()java.lang.Object#wait(long)java.lang.Object#wait(long,int)java.lang.Object#wait()java.lang.Object#finalize()java.lang.Object#getClass()java.lang.Object#hashCode()java.lang.Object#clone()java.lang.Object#notify()java.lang.Object#notifyAll()- getBimWorksClient()