Universal.Operative.Sdk.Discrete.Databricks
2.0.0
See the version list below for details.
dotnet add package Universal.Operative.Sdk.Discrete.Databricks --version 2.0.0
NuGet\Install-Package Universal.Operative.Sdk.Discrete.Databricks -Version 2.0.0
<PackageReference Include="Universal.Operative.Sdk.Discrete.Databricks" Version="2.0.0" />
<PackageVersion Include="Universal.Operative.Sdk.Discrete.Databricks" Version="2.0.0" />
<PackageReference Include="Universal.Operative.Sdk.Discrete.Databricks" />
paket add Universal.Operative.Sdk.Discrete.Databricks --version 2.0.0
#r "nuget: Universal.Operative.Sdk.Discrete.Databricks, 2.0.0"
#:package Universal.Operative.Sdk.Discrete.Databricks@2.0.0
#addin nuget:?package=Universal.Operative.Sdk.Discrete.Databricks&version=2.0.0
#tool nuget:?package=Universal.Operative.Sdk.Discrete.Databricks&version=2.0.0
About
Universal.Operative.Sdk.Discrete.Databricks plugs Databricks Unity Gateway model services into Universal.Operative.Sdk through IModel adapters backed by Universal.Databricks.Client.
Configuration
using Universal.Databricks.Client;
using Universal.Operative.Sdk;
using Universal.Operative.Sdk.Discrete;
using Universal.Operative.Sdk.Discrete.Databricks.OpenAI;
using DatabricksClient databricks = new DatabricksClient("https://dbc-1234abcd-5678.cloud.databricks.com", token);
using IModel model = new ChatCompletionsModel(databricks.AIGateway.Mlflow, new ChatCompletionsModel.Options { ModelId = "system.ai.claude-sonnet-4-5", MaxCompletionTokens = 4096, });
Each adapter matches the type and option names of its base provider adapter:
| Adapter | Gateway client | Models |
|---|---|---|
Databricks.OpenAI.ChatCompletionsModel |
AIGateway.Mlflow, AIGateway.NativeOpenAI |
Any chat model service through Mlflow; GPT services through NativeOpenAI |
Databricks.OpenAI.ResponsesModel |
AIGateway.Mlflow, AIGateway.NativeOpenAI |
Any chat model service through Mlflow; GPT services through NativeOpenAI |
Databricks.Anthropic.Model |
AIGateway.NativeAnthropic |
Claude, and other models that list anthropic/v1/messages |
Databricks.Google.Gemini.Model |
AIGateway.NativeGemini |
Gemini |
Set ModelId to a model service name. ChatCompletionsModel sends MaxCompletionTokens as max_tokens, replays Claude reasoning with its signature, and returns Gemini thought signatures with tool calls. Set UsePromptCaching to cache the system prompt and latest message on Claude.
Function-tool strictness
The adapter reads ToolDefinition.Extensions["openai"]["strict"] for compatible function definitions. Explicit false and true are forwarded unchanged. An absent or null setting retains the existing adapter default. Parameter schemas, including nested optional fields and required lists, are forwarded without strict-schema rewriting. Callers enabling strict mode must supply a compatible schema.
The Chat Completions mapping leaves an absent flag unset; the Responses mapping defaults it to false.
Verification
Run local tests with dotnet test Universal.Operative.Sdk.Discrete.Databricks.Tests --filter "TestCategory!=Live". Live tests require Databricks:Host and Databricks:Token in the test project's user secrets and are selected with --filter "TestCategory=Live".
License
Free for noncommercial use under the Universal.Operative Noncommercial License. Source is closed; commercial use requires a separate license from Andrew Ong.
| 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. net11.0 is compatible. |
-
net10.0
- Universal.Common.Formats.Gif (>= 2.1.0)
- Universal.Common.Formats.Jpeg (>= 2.1.3)
- Universal.Common.Formats.Png (>= 2.2.0)
- Universal.Common.Formats.WebP (>= 2.0.0)
- Universal.Databricks.Client (>= 1.1.0)
- Universal.Operative.Sdk (>= 7.0.0)
- Universal.Operative.Sdk.Discrete (>= 4.0.0)
-
net11.0
- Universal.Common.Formats.Gif (>= 2.1.0)
- Universal.Common.Formats.Jpeg (>= 2.1.3)
- Universal.Common.Formats.Png (>= 2.2.0)
- Universal.Common.Formats.WebP (>= 2.0.0)
- Universal.Databricks.Client (>= 1.1.0)
- Universal.Operative.Sdk (>= 7.0.0)
- Universal.Operative.Sdk.Discrete (>= 4.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Targets .NET 10 and .NET 11; removes .NET 8 support.