FieldCure.Ai.Providers 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FieldCure.Ai.Providers --version 0.1.0
                    
NuGet\Install-Package FieldCure.Ai.Providers -Version 0.1.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="FieldCure.Ai.Providers" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FieldCure.Ai.Providers" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="FieldCure.Ai.Providers" />
                    
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 FieldCure.Ai.Providers --version 0.1.0
                    
#r "nuget: FieldCure.Ai.Providers, 0.1.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 FieldCure.Ai.Providers@0.1.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=FieldCure.Ai.Providers&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=FieldCure.Ai.Providers&version=0.1.0
                    
Install as a Cake Tool

FieldCure.Ai.Providers

AI provider clients for Claude, OpenAI, Gemini, Ollama, and Groq with shared models and streaming support.

Providers

Provider Transport Streaming
Claude (Anthropic) HTTP SSE
OpenAI / Groq HTTP SSE
Gemini (Google) HTTP SSE
Ollama HTTP NDJSON
Mock In-memory Sync

Quick Start

using FieldCure.Ai.Providers.Models;
using FieldCure.Ai.Providers;

var preset = new ProviderPreset
{
    ProviderType = "Claude",
    ApiKey = "sk-...",
    ModelId = "claude-sonnet-4-20250514",
};

var provider = ProviderFactory.Create(preset);

var request = new AiRequest
{
    Messages = [new ChatMessage(ChatRole.User, "Hello!")],
};

var response = await provider.CompleteAsync(request);
Console.WriteLine(response.Content);

Models

  • ChatMessage, ChatRole — conversation messages
  • AiRequest, AiResponse — LLM request/response
  • ProviderPreset — provider configuration
  • ToolCall, IAssistTool — function calling
  • StreamEvent — streaming response events
  • McpToolAdapter — MCP tool wrapper

License

MIT

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 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on FieldCure.Ai.Providers:

Package Downloads
FieldCure.AssistStudio.Core

App-level helpers and models for AssistStudio — MCP server management, tool orchestration, workspace context, and conversation persistence. AI providers are in FieldCure.Ai.Providers.

FieldCure.Ai.Execution

Agent loop and sub-agent execution engine. Provides IAgentLoop for autonomous LLM tool-use loops and ISubAgentExecutor for isolated sub-agent sessions.

FieldCure.AssistStudio.Anthropic

Platform-agnostic Anthropic SDK adapter for AssistStudio. Maps Anthropic streaming events to StreamEvent and converts ChatMessage to MessageParam.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.0 123 5/25/2026
0.7.2 123 5/5/2026
0.7.1 157 5/4/2026
0.7.0 129 5/4/2026
0.6.0 142 4/27/2026
0.5.0 163 4/21/2026
0.4.0 147 4/14/2026
0.3.0 128 4/10/2026
0.2.0 127 4/7/2026
0.1.0 184 3/31/2026

# Release Notes — FieldCure.Ai.Providers

## v0.1.0

- Initial release — extracted from AssistStudio.Core
- AI providers: Claude, OpenAI, Gemini, Ollama, Groq, Mock
- Shared models: ChatMessage, AiRequest, AiResponse, ProviderPreset, ToolCall, IAssistTool
- Streaming support via StreamEvent
- Document attachment processing (PDF, DOCX, images)