run_llm_chat_app {PacketLLM}R Documentation

Run the LLM Chat Application in RStudio Window

Description

Launches the Shiny application as a Gadget in the RStudio Viewer pane, from where it can be opened in a separate window ("Show in new window"). The application allows interaction with LLM models, managing conversations, attachments, and settings, without blocking the RStudio console when opened in a new window.

Usage

run_llm_chat_app()

Value

Returns the value passed to shiny::stopApp() when the application is closed (typically NULL). The primary purpose is the side effect of launching the interactive application.

Examples

## Not run: 
# This function launches an interactive Shiny gadget.
# It should be run in an interactive R session, preferably within RStudio.

# Ensure necessary setup like the OpenAI API key environment variable
# might be needed for the application's full functionality once launched.
# Example: Sys.setenv(OPENAI_API_KEY = "your_actual_openai_api_key")

# Launch the application
run_llm_chat_app()

# The application will open in the RStudio Viewer or a separate window.
# Interaction happens within the app's UI.
# To stop the app, close its window or click the 'X' button in the app's UI.

## End(Not run)

[Package PacketLLM version 0.1.0 Index]