{"id":22065425,"url":"https://github.com/tryagi/langsmith","last_synced_at":"2025-07-16T20:35:14.240Z","repository":{"id":188657097,"uuid":"679162469","full_name":"tryAGI/LangSmith","owner":"tryAGI","description":"LangSmith C# SDK based on official LangSmith OpenAPI specification","archived":false,"fork":false,"pushed_at":"2025-07-14T18:35:48.000Z","size":4293,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-14T22:12:00.065Z","etag":null,"topics":["ai","api","client","csharp","debugging","dotnet","generated","langchain","langchain-dotnet","langsmith","openapi","sdk","trace","tracing"],"latest_commit_sha":null,"homepage":"https://tryagi.github.io/LangSmith/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryAGI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"HavenDV","patreon":"havendv","ko_fi":"havendv","custom":["https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"]}},"created_at":"2023-08-16T08:27:19.000Z","updated_at":"2025-07-14T18:35:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ef3d26d-1a43-45be-8822-43190210cc2a","html_url":"https://github.com/tryAGI/LangSmith","commit_stats":null,"previous_names":["tryagi/langsmith"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tryAGI/LangSmith","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLangSmith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLangSmith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLangSmith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLangSmith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryAGI","download_url":"https://codeload.github.com/tryAGI/LangSmith/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryAGI%2FLangSmith/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265538575,"owners_count":23784614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","client","csharp","debugging","dotnet","generated","langchain","langchain-dotnet","langsmith","openapi","sdk","trace","tracing"],"created_at":"2024-11-30T19:17:37.857Z","updated_at":"2025-07-16T20:35:14.220Z","avatar_url":"https://github.com/tryAGI.png","language":"C#","funding_links":["https://github.com/sponsors/HavenDV","https://patreon.com/havendv","https://ko-fi.com/havendv","https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://donate.stripe.com/00gfZ19zkeKLh1eaEE","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"],"categories":[],"sub_categories":[],"readme":"# LangSmith SDK for .NET\n\n[![Nuget package](https://img.shields.io/nuget/vpre/LangSmith)](https://www.nuget.org/packages/LangSmith/)\n[![dotnet](https://github.com/tryAGI/LangSmith/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/tryAGI/LangSmith/actions/workflows/dotnet.yml)\n[![License: MIT](https://img.shields.io/github/license/tryAGI/LangSmith)](https://github.com/tryAGI/LangSmith/blob/main/LICENSE.txt)\n[![Discord](https://img.shields.io/discord/1115206893015662663?label=Discord\u0026logo=discord\u0026logoColor=white\u0026color=d82679)](https://discord.gg/Ca2xhfBf3v)\n\n## Features 🔥\n- Fully generated C# SDK based on [official OpenAPI specification](https://api.smith.langchain.com/openapi.json) using [AutoSDK](https://github.com/tryAGI/AutoSDK)\n- Automatic releases of new preview versions if there was an update to the OpenAPI specification\n- All modern .NET features - nullability, trimming, NativeAOT, etc.\n- Support .Net Framework/.Net Standard 2.0\n\n## Usage\n\n### Initializing\n\n```csharp\nusing var client = new LangSmithClient();\nusing var openAiClient = new OpenAiClient();\n\nclient.JsonSerializerContext = new SpecialJsonSerializerContext(tryAGI.OpenAI.SourceGenerationContext.Default);\n\n// This can be a user input to your app\nvar question = \"Can you summarize this morning's meetings?\";\n\n// This can be retrieved in a retrieval step\nconst string context = \"During this morning's meeting, we solved all world conflict.\";\nvar messages = new[]\n{\n    \"You are a helpful assistant. Please respond to the user's request only based on the given context.\"\n        .AsSystemMessage(),\n    $\"Question: {question}\\\\nContext: {context}\",\n};\n\n// Create parent run\nvar parentRunId = Guid.NewGuid();\nawait client.Run.CreateRunAsync(\n    name: \"Chat Pipeline\",\n    runType: CreateRunRequestRunType.Chain,\n    id: parentRunId,\n    inputs: new Dictionary\u003cstring, object\u003e\n    {\n        [\"question\"] = question,\n    });\n\n// Create child run\nvar childRunId = Guid.NewGuid();\nawait client.Run.CreateRunAsync(\n    name: \"OpenAI Call\",\n    runType: CreateRunRequestRunType.Llm,\n    id: childRunId,\n    parentRunId: parentRunId,\n    inputs: new Dictionary\u003cstring, object\u003e\n    {\n        [\"messages\"] = messages,\n    });\n\n// Generate a completion\nvar chatCompletion = await openAiClient.Chat.CreateChatCompletionAsync(\n    model: CreateChatCompletionRequestModel.Gpt35Turbo,\n    messages: messages);\n\n// End runs\nawait client.Run.UpdateRunAsync(\n    runId: childRunId,\n    outputs: new Dictionary\u003cstring, object\u003e\n    {\n        [\"chatCompletion\"] = chatCompletion,\n    },\n    endTime: DateTime.UtcNow.ToString(\"O\"));\nawait client.Run.UpdateRunAsync(\n    runId: parentRunId,\n    outputs: new Dictionary\u003cstring, object\u003e\n    {\n        [\"answer\"] = chatCompletion.Choices[0].Message.Content ?? string.Empty,\n    },\n    endTime: DateTime.UtcNow.ToString(\"O\"));\n```\n\n## Support\n\nPriority place for bugs: https://github.com/tryAGI/LangSmith/issues  \nPriority place for ideas and general questions: https://github.com/tryAGI/LangSmith/discussions  \nDiscord: https://discord.gg/Ca2xhfBf3v  \n\n## Acknowledgments\n\n![JetBrains logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png)\n\nThis project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).\n\n![CodeRabbit logo](https://opengraph.githubassets.com/1c51002d7d0bbe0c4fd72ff8f2e58192702f73a7037102f77e4dbb98ac00ea8f/marketplace/coderabbitai)\n\nThis project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Flangsmith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryagi%2Flangsmith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryagi%2Flangsmith/lists"}