Can AIP Logic query timeseries?

I have an AIP Logic, which I’m giving access to some Ontology Objects. Those Objects have timeseries properties.

Can ask the AIP Logic to query those timeseries ? Can I prompt the AIP Logic for “sum of the last 7 days of ” and the AIP Logic will be able to query the timeseries property of this object instance ?

1 Like

This is theoretically possible but not recommended. Keep in mind that LLMs handle simple calculations very poorly, they are also non-deterministic. This means that the Logic function could make a mistake at two points in your request: querying objects from the last 7 days and summing the properties for all these objects.

Instead it is recommended that you use functions that can algorithmically process this. You can then pass this function in as a tool for the Logic function to use. (The function would filter for objects that are within the last 7 days of… and then sum the timeseries property).

1 Like

Another option is to author a typescript function that does the timeseries query. (link) and exposing it to Logic via the Function Tool

3 Likes