Next Gen UI Core Functionality
This module is part of the Next Gen UI Agent project.
This module contains UI Agent Core functionality and frameworks.
Provides
NextGenUIAgentproviding agent configuration and methods for individual processing steps- Produced UI Data Blocks:
- LLM selected and configured dynamic components
- Supported:
one-card,image,video-player - Tech-Preview:
set-of-cards,table
- Supported:
- Hand Build Components
- Extensible framework for "data transformation" step
- LLM selected and configured dynamic components
- Plugable "UI renderer" framework for UI components rendering
- Default
jsonrenderer used to send definitions to client-side renderers
- Default
- Abstraction of the LLM inference
InferenceBaseinterface used by UI AgentLangChainModelInferenceimplementation using LangChainchat_models.
- Pluggable and configurable "Input Data Transformation" framework
- Provided transformers:
json,yaml,csv-comma,csv-semicolon,csv-tab,fwctable,noop
- Provided transformers:
Installation
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.