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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ToolUp.AICookbooks.AgChart" Version="0.22.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolUp.AICookbooks.AgChart" Version="0.22.0" />
                    
Directory.Packages.props
<PackageReference Include="ToolUp.AICookbooks.AgChart" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ToolUp.AICookbooks.AgChart --version 0.22.0
                    
#r "nuget: ToolUp.AICookbooks.AgChart, 0.22.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ToolUp.AICookbooks.AgChart@0.22.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ToolUp.AICookbooks.AgChart&version=0.22.0
                    
Install as a Cake Addin
#tool nuget:?package=ToolUp.AICookbooks.AgChart&version=0.22.0
                    
Install as a Cake Tool

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:

  1. TOOLUP_COOKBOOK_PATH — a file path, or a directory holding COOKBOOK.Community.md.
  2. Assembly-relative — the copy this package ships beside the assembly (content\COOKBOOK.Community.md, copied to the build output).
  3. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
0.22.0 42 8/27/2026
0.21.0 49 8/26/2026
0.20.1 102 8/20/2026
0.20.0 94 8/19/2026