Skip to contents

Utility functions to create AI tools for blockr.ui

Usage

setup_chat_provider(
  chat = blockr_option("chat_function", default_chat),
  prompt = readLines(system.file("examples/ai-chat/rules.md", package = "blockr.ui")),
  ...
)

Arguments

chat

ellmer::chat()-like function.

prompt

System prompt to use for the AI provider. Best to create a markdown file with instructions.

...

Additional arguments to pass to the provider.