LangChain
LangChain copied to clipboard
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
## What would you like to be added: ## Why is this needed: ## Anything else we need to know?
### Describe the bug Source Generators for Functions/Tools don't work in Console global namespace ### Steps to reproduce the bug Source Generators for Functions/Tools don't work in Console global namespace...
> this part seems weird to me > var service = new BookStoreService(); > model.AddGlobalTools(service.AsAnthropicTools(), service.AsAnthropicCalls()); > seems like it should be more like model.GetService() unfortunately I have not yet...
```csharp public async Task Ask(string prompt) { string jsonStructure = Utils.GenerateJsonStructure(); string expandedPrompt = $"{prompt}\nPlease provide the response in the following json format: {jsonStructure}"; var response = await Ask(expandedPrompt); //sometimes...
## What would you like to be added: ## Why is this needed: ## Anything else we need to know? Checklist - [X] Modify `src/Cli/src/Providers.cs` ✓ https://github.com/tryAGI/LangChain/commit/8724d6bfb930b4932e0f67815d6ff6c3a00b7e56 [Edit](https://github.com/tryAGI/LangChain/edit/sweep/add_together_provider_support_to_langcha_72208/src/Cli/src/Providers.cs) - [X]...
## What would you like to be added: ## Why is this needed: ## Anything else we need to know? Checklist - [X] Modify `src/Cli/src/Commands/Auth/OpenAiCommand.cs` ✓ https://github.com/tryAGI/LangChain/commit/09d364b4e0600e2cba75210cbfae321f06b13642 [Edit](https://github.com/tryAGI/LangChain/edit/sweep/add_options_like_temperature_to_langchai/src/Cli/src/Commands/Auth/OpenAiCommand.cs) - [X]...
A new part of the library, like Providers, but for prompt libraries. Possible use - we can introduce a special mode for Crew, when it will create a team for...
https://devblogs.microsoft.com/dotnet/get-started-with-dotnet-ai-quickstarts/ https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/quickstart-openai-summarize-text?pivots=semantic-kernel
https://devblogs.microsoft.com/dotnet/get-started-with-dotnet-ai-quickstarts/ [Execute a local .NET function](https://aka.ms/dotnet-ai-quickstart4)
[Generate images](https://aka.ms/dotnet-ai-quickstart5) https://devblogs.microsoft.com/dotnet/get-started-with-dotnet-ai-quickstarts/