ToolUp.AICookbooks.AgChart
0.22.0
Prefix Reserved
dotnet add package ToolUp.AICookbooks.AgChart --version 0.22.0
NuGet\Install-Package ToolUp.AICookbooks.AgChart -Version 0.22.0
<PackageReference Include="ToolUp.AICookbooks.AgChart" Version="0.22.0" />
<PackageVersion Include="ToolUp.AICookbooks.AgChart" Version="0.22.0" />
<PackageReference Include="ToolUp.AICookbooks.AgChart" />
paket add ToolUp.AICookbooks.AgChart --version 0.22.0
#r "nuget: ToolUp.AICookbooks.AgChart, 0.22.0"
#:package ToolUp.AICookbooks.AgChart@0.22.0
#addin nuget:?package=ToolUp.AICookbooks.AgChart&version=0.22.0
#tool nuget:?package=ToolUp.AICookbooks.AgChart&version=0.22.0
ToolUp.AICookbooks.AgChart
Community AG Chart + AG Grid prompt-builder companion for ToolUp.AI (Phase 12e).
What it does
Exposes a SystemPromptBuilder a deployment composes into composeWithAI's prompt list, so the in-app AI assistant authors charts and grids in F# against the typed AgChart / AgGrid bindings rather than guessing at the JS API.
At construction it reads the Community COOKBOOK.md, extracts its ## Critical constraints and ## The shortest possible chart sections via a header-keyed parse, and prepends them under an authoring heading. The extraction is bounded to ~600 tokens (truncated on a line boundary) so the per-conversation cost is predictable.
The read and extraction happen once at construction; the returned builder serves the cached guidance on every turn.
What it does NOT do
Nothing auto-injects this. ToolUp.AI carries no dependency on the UI bindings — the deployment's composition root is the only place that sees both, so wiring it is an explicit opt-in (GP 13: deployments that don't compose it pay nothing).
Enabling
open ToolUp.AI
let chartGuidance = AgChartAICookbook.systemPromptBuilder (Some logger)
AIServerApp.empty
|> AIServerApp.withSystemPromptBuilder chartGuidance
|> AIServerApp.run
Cookbook resolution
systemPromptBuilder probes for COOKBOOK.Community.md on these paths, most-specific first:
TOOLUP_COOKBOOK_PATH— a file path, or a directory holdingCOOKBOOK.Community.md.- Assembly-relative — the copy this package ships beside the assembly (
content\COOKBOOK.Community.md, copied to the build output). - A dev repo-relative path from the build output back to the source cookbook in
ToolUp.Platform.Client.
buildFromFile takes an explicit path when a deployment wants to supply its own cookbook.
The copied name is deliberately not plain COOKBOOK.md: the Enterprise companion copies its own cookbook into the same output directory, and a shared name lets one silently overwrite the other. The repo's source file keeps the plain name — only the copied and packed artefact is companion-specific. It is exposed as AgChartAICookbook.CookbookFileName.
Degradation
A read failure, an unrecognised cookbook, or an empty extraction produces a single startup Warn on the supplied ILogger and a no-op builder returning an empty string. A deployment that cannot ship its COOKBOOK.md loses the chart-authoring guidance; it does not fail to start.
See also
src/ToolUp.Platform.Client/Client/UI/COOKBOOK.md— the Community authoring reference this reads.ToolUp.AICookbooks.AgGridEnterprise— the Enterprise twin (Sankey / Sunburst / Treemap / OHLC / Sparkline, Set Filter / Master-Detail / Excel export).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ToolUp.AI.Server (>= 0.22.0)
- ToolUp.Platform.Core (>= 0.22.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ToolUp.AICookbooks.AgChart:
| Package | Downloads |
|---|---|
|
ToolUp.AICookbooks.AgGridEnterprise
Enterprise AG Grid + AG Chart prompt-builder companion for ToolUp.AI. Composes the Enterprise COOKBOOK.md's constraints + shortest-possible into a deployment's system prompt (Sankey/Sunburst/Treemap/OHLC/Sparkline + Set Filter/Master-Detail/Excel/Status Bar/Sidebar). Opt-in; Enterprise-only. |
GitHub repositories
This package is not used by any popular GitHub repositories.