Concepts

Browser Storage: Defining and Running Storage Actions

GPALUrl carries a list of storage actions -- cookies, localStorage, sessionStorage, indexedDb, and cache -- to inspect or change once that URL is active. The With...() calls used to define those actions on the GPALUrl double as filters when called on the browser before RunGet/RunSet/RunDelete, and WithUserDefined gives you a fallback when the built-in fields cannot pin down the action you mean.

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.

OpenAPI Maps: Machine-Readable API Contracts

An OpenAPI specification is a YAML or JSON document that describes a REST API -- its endpoints, required and optional parameters, and response shapes. GPAL.RESTClient.LoadOpenAPIMap() reads one, sets the base URL automatically from the servers block, and validates request parameters before any call leaves your workflow.

💬 Ask GPAL