Skip to content

Next Gen UI Core Functionality

This module is part of the Next Gen UI Agent project.

Module Category Module Status

This module contains UI Agent Core functionality and frameworks.

Provides

  • NextGenUIAgent providing agent configuration and methods for individual processing steps
  • Produced UI Data Blocks:
  • Extensible framework for "data transformation" step
  • Plugable "UI renderer" framework for UI components rendering
    • Default json renderer used to send definitions to client-side renderers
  • Abstraction of the LLM inference
    • InferenceBase interface used by UI Agent
    • LangChainModelInference implementation using LangChain chat_models.

Installation

pip install -U next_gen_ui_agent

Interface usage

from next_gen_ui_agent import NextGenUIAgent

inference = # any AI framework inference

agent = NextGenUIAgent(
    inference=LlamaStackInference(model="ollama:llama3.2"),
)

# API is not very friendly ATM, as you have to call methods for individual processing steps. We plan to improve it iit the near future.