PolyhydraGames.AI 2.0.0.84

dotnet add package PolyhydraGames.AI --version 2.0.0.84
                    
NuGet\Install-Package PolyhydraGames.AI -Version 2.0.0.84
                    
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="PolyhydraGames.AI" Version="2.0.0.84" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PolyhydraGames.AI" Version="2.0.0.84" />
                    
Directory.Packages.props
<PackageReference Include="PolyhydraGames.AI" />
                    
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 PolyhydraGames.AI --version 2.0.0.84
                    
#r "nuget: PolyhydraGames.AI, 2.0.0.84"
                    
#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 PolyhydraGames.AI@2.0.0.84
                    
#: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=PolyhydraGames.AI&version=2.0.0.84
                    
Install as a Cake Addin
#tool nuget:?package=PolyhydraGames.AI&version=2.0.0.84
                    
Install as a Cake Tool

Api.AI

Api.AI is a modular .NET 10 solution for AI abstractions, provider integrations, REST consumption, and API hosting.

Docs and Kanban

Hermes Kanban is the execution source of truth for active work. Repo-local docs are tracking/context mirrors and should point back to a Hermes t_* card.

Tags

  • api
  • dotnet
  • api-ai
  • docs
  • chat
  • ui

Packages

  • PolyhydraGames.AI.Interfaces
  • PolyhydraGames.Ollama
  • PolyhydraGames.AI.Rest
  • Api.ChatGPT
  • PolyhydraGames.AI.WebApi

Quick Start

dotnet restore AI.sln
dotnet build AI.sln -c Release --no-restore
dotnet test AI.sln -c Release --no-build

Publishing

CI publishes PolyhydraGames.AI.Interfaces and PolyhydraGames.Ollama to nuget.org only through an explicit dispatch of publish-packages.yml on main, with publish_nuget_org=true and an explicit normalized package_version. The public publish job uses the GitHub release environment, whose deployment branch policy allows only the main branch. The existing NuGet trusted-publishing policy for lancer1977/Api.AI, workflow publish-packages.yml, must also specify environment release; a feature branch or tag cannot use this policy. Both package IDs must be covered by the scoped trusted publisher before dispatch. The public handoff rejects missing, additional, or mismatched-version packages. Merging this workflow does not publish to nuget.org.

Use ./pub.sh to restore, test, pack, and publish the package libraries.

  • GitHub Packages is the default publish target.
  • Set PUBLISH_NUGET_ORG=true only when the package should also go to nuget.org.
  • Set DRY_RUN=true to skip pushes.
  • Use PACKAGE_API_KEY, GHCR_TOKEN, GITHUB_PACKAGES_TOKEN, GITHUB_TOKEN, or GH_TOKEN for GitHub Packages auth.

For private/internal consumption from GitHub Packages, add the GitHub NuGet source for this organization and authenticate with a GitHub token or PAT:

dotnet nuget add source https://nuget.pkg.github.com/lancer1977/index.json \
  --name lancer1977 \
  --username YOUR_GITHUB_USERNAME \
  --password YOUR_GITHUB_TOKEN \
  --store-password-in-clear-text

Test Modes

Default tests are smoke-level and should remain stable in CI.

dotnet test AI.sln -c Release --no-build

Integration tests for Ollama and REST are explicit or environment gated.

OLLAMA_INTEGRATION_TESTS=true dotnet test tests/Ollama.Test/PolyhydraGames.3rdParty.AI.Test.csproj -c Release

Documentation

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (2)

Showing the top 2 NuGet packages that depend on PolyhydraGames.AI:

Package Downloads
PolyhydraGames.Ollama

Ollama client helpers for Polyhydra Games.

PolyhydraGames.AI.Rest

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0.84 15,852 10/15/2026
2.0.0.82 102 10/15/2026
1.0.0.78 7,070 2/18/2026
1.0.0.77 763 1/28/2026
1.0.0.76 252 1/12/2026
1.0.0.75 157 1/12/2026
1.0.0.74 225 12/13/2025
1.0.0.73 206 12/13/2025
1.0.0.72 198 12/13/2025
1.0.0.70 187 12/12/2025
1.0.0.69 350 12/7/2025
1.0.0.68 251 12/7/2025
1.0.0.67 217 12/6/2025
1.0.0.66 209 12/6/2025
1.0.0.65 218 12/6/2025
1.0.0.64 266 12/5/2025
1.0.0.62 503 10/22/2025
1.0.0.60 343 10/7/2025
1.0.0.59 607 7/1/2025
1.0.0.58 254 6/30/2025
Loading failed