DataSQRL/Acorn

Auto-visualization

Opened this issue · 0 comments

Make auto-visualization configurable on a function definition by defining the client function to call on the result data returned by this function call using a parametrized syntax.

When a function has auto-visualization enabled, an additional argument is added to the function call that let's the LLM indicate whether the result data is the data the user is asking for. If that is set to true, the client function call is returned immediately instead of doing another round-trip through the LLM.

This saves a lot of tokens and latency for many common use cases.