Concepts

Choosing an AI Provider with AIProviderType

AIProviderType is an open-ended struct -- XAI, OpenAI, and Anthropic are built-in named constants, but any string you pass is a valid provider name. Each provider's URL, endpoint, authentication style, and default model come from AIProvidersConfig.yaml. GPAL ships with built-in definitions for the three standard providers so no config file is required to get started.

Summarizing and Generating Text with GPAL.AI

Beyond classification, GPAL.AI can summarize long text, generate new text from a prompt, or augment existing data. The same WithProvider, WithTask, WithInputFrom, WithOutputTo chain, just with a different AITask.

Classifying Text with GPAL.AI

GPAL.AI runs text through a large language model to classify it -- sentiment, spam, intent, and a dozen other built-in categories, or a category you define yourself -- using the same fluent settings-then-execute pattern as the rest of GPAL.

Live AI Forms with WithLiveInputFrom

WithLiveInputFrom wires a GPALInput or GPALTextArea's TextChanged event (debounced) to automatically re-run the configured AI task and write the result to WithOutputTo, turning the button-driven pattern from Summarizing and Generating Text with GPAL.AI into a live, type-and-see tool with one extra call.

LLM-Ready Page Digests

GetLLMDigest and SaveLLMDigest turn the current page into cleaned markdown for LLM input. Cleanup rules -- what counts as junk, where the main content lives, which post-conversion passes run -- come from LLMDigestRules.yaml so they can be tuned per site without recompiling.

Tuning LLMDigestRules.yaml

LLMDigestRules.yaml controls what gets stripped, where the main content lives, and which cleanup steps run on the converted markdown. All editable without recompiling. Call DigestRulesConfig.Save() to generate a starter file, then add or adjust rule sets below the built-in ones.

💬 Ask GPAL