LangSmith 2.0.1-dev.151
This is a prerelease version of LangSmith.
dotnet add package LangSmith --version 2.0.1-dev.151
NuGet\Install-Package LangSmith -Version 2.0.1-dev.151
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="LangSmith" Version="2.0.1-dev.151" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LangSmith" Version="2.0.1-dev.151" />
<PackageReference Include="LangSmith" />
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 LangSmith --version 2.0.1-dev.151
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LangSmith, 2.0.1-dev.151"
#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 LangSmith@2.0.1-dev.151
#: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=LangSmith&version=2.0.1-dev.151&prerelease
#tool nuget:?package=LangSmith&version=2.0.1-dev.151&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LangSmith SDK for .NET
Features 🔥
- Fully generated C# SDK based on official OpenAPI specification using AutoSDK
- Automatic releases of new preview versions if there was an update to the OpenAPI specification
- All modern .NET features - nullability, trimming, NativeAOT, etc.
- Support .Net Framework/.Net Standard 2.0
Usage
Initializing
using var client = new LangSmithClient();
using var openAiClient = new OpenAiClient();
client.JsonSerializerContext = new SpecialJsonSerializerContext(tryAGI.OpenAI.SourceGenerationContext.Default);
// This can be a user input to your app
var question = "Can you summarize this morning's meetings?";
// This can be retrieved in a retrieval step
const string context = "During this morning's meeting, we solved all world conflict.";
var messages = new[]
{
"You are a helpful assistant. Please respond to the user's request only based on the given context."
.AsSystemMessage(),
$"Question: {question}\\nContext: {context}",
};
// Create parent run
var parentRunId = Guid.NewGuid();
await client.Run.CreateRunAsync(
name: "Chat Pipeline",
runType: CreateRunRequestRunType.Chain,
id: parentRunId,
inputs: new Dictionary<string, object>
{
["question"] = question,
});
// Create child run
var childRunId = Guid.NewGuid();
await client.Run.CreateRunAsync(
name: "OpenAI Call",
runType: CreateRunRequestRunType.Llm,
id: childRunId,
parentRunId: parentRunId,
inputs: new Dictionary<string, object>
{
["messages"] = messages,
});
// Generate a completion
var chatCompletion = await openAiClient.Chat.CreateChatCompletionAsync(
model: CreateChatCompletionRequestModel.Gpt35Turbo,
messages: messages);
// End runs
await client.Run.UpdateRunAsync(
runId: childRunId,
outputs: new Dictionary<string, object>
{
["chatCompletion"] = chatCompletion,
},
endTime: DateTime.UtcNow.ToString("O"));
await client.Run.UpdateRunAsync(
runId: parentRunId,
outputs: new Dictionary<string, object>
{
["answer"] = chatCompletion.Choices[0].Message.Content ?? string.Empty,
},
endTime: DateTime.UtcNow.ToString("O"));
Support
Priority place for bugs: https://github.com/tryAGI/LangSmith/issues
Priority place for ideas and general questions: https://github.com/tryAGI/LangSmith/discussions
Discord: https://discord.gg/Ca2xhfBf3v
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
This project is supported by CodeRabbit through the Open Source Support Program.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.1-dev.151 | 0 | 3/12/2026 |
| 2.0.1-dev.150 | 3 | 3/11/2026 |
| 2.0.1-dev.149 | 27 | 3/11/2026 |
| 2.0.1-dev.148 | 33 | 3/11/2026 |
| 2.0.1-dev.147 | 31 | 3/11/2026 |
| 2.0.1-dev.134 | 36 | 3/4/2026 |
| 2.0.1-dev.85 | 176 | 8/12/2025 |
| 2.0.1-dev.84 | 165 | 8/12/2025 |
| 2.0.1-dev.83 | 4,713 | 8/6/2025 |
| 2.0.1-dev.82 | 200 | 8/4/2025 |
| 2.0.1-dev.81 | 76 | 8/1/2025 |
| 2.0.1-dev.80 | 84 | 8/1/2025 |
| 2.0.1-dev.79 | 123 | 8/1/2025 |
| 2.0.1-dev.78 | 135 | 7/30/2025 |
| 2.0.1-dev.77 | 124 | 7/29/2025 |
| 2.0.1-dev.76 | 341 | 7/25/2025 |
| 2.0.1-dev.75 | 492 | 7/25/2025 |
| 2.0.1-dev.73 | 146 | 7/17/2025 |
| 2.0.1-dev.72 | 153 | 7/17/2025 |
| 2.0.0 | 29,755 | 3/29/2025 |
Loading failed