
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
SharpChat is a C# library that tries to offer functionality similar to TypeChat, making it seamless to construct natural language interfaces using types. Schema enginerring is the new prompt engineering!
WIP
SharpChat is setup during initialization of your services.
Simply call AddSharpChat
to register the functions you want the chatbot to use.
var services = new ServiceCollection()
.AddSharpChat((f, _) => f
.RegisterFunction(myFunc1)
.RegisterFunction(myFunc2)
...
.BuildServiceProvider();
Start a conversation, passing an OpenAI API client initialized with your API key.
var factory = services.GetRequiredService<IConversationFactory>();
var client = new OpenAIClient(apikey);
var conversation = factory.StartConversation(client, model);
SharpChat automatically exposes your registerd functions to the conversation, allowing the chatbot to call them! Now you can start chatting!
var output = await conversation.Prompt("...");
Take a look at SharpChat.Examples.Shopping
and SharpChat.Examples.Math
for inspiration on how to use SharpChat.
FAQs
Unknown package
We found that sharpchat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.