Skip to content

v1.7.1 - Add Lifespan property to contexts

Compare
Choose a tag to compare
@xVir xVir released this 14 Oct 09:20

This release adds Lifespan property to the AIContext class. Lifespan determines for how many requests context will affect the result.

final AIContext weatherContext = new AIContext("weather");
weatherContext.setParameters(Collections.singletonMap("location", "London"));
weatherContext.setLifespan(2);