eSeGeCe — Enterprise Communication Components for Delphi & .NET
FEATURED · AI & LLM components

Your Delphi app, now an AI application

Native components for OpenAI, Anthropic, Google Gemini, xAI Grok, DeepSeek, Mistral and Ollama. Streaming responses, function calling, embeddings, vision, and the Model Context Protocol, straight from your Delphi or .NET code. No Python bridge, no external runtime, nothing extra to install on the target machine.

  • 7 native LLM components
  • MCP client and server
  • Delphi 7 to RAD Studio 13
Assistant · streaming over SSE

You

Summarise order 10248 for the customer and tell me if anything is blocking the delivery.

Assistant tool call · GetOrder

I called GetOrder with id 10248. It returned 3 order lines, total 440.00 EUR, shipped on 16 July. The customer has no open invoices, so nothing is blocking the delivery.
sgcWebSockets

The AI and MCP components ship inside sgcWebSockets, the same library that gives you WebSocket, HTTP/2, MQTT and 30+ API integrations. One install, one licence, full source.

AI components → See pricing →

Every model, one component style

Seven native clients, each a drop-in non-visual component with typed requests, typed responses and Server-Sent Events streaming.

OpenAI Anthropic Claude Google Gemini xAI Grok DeepSeek Mistral AI Ollama

The OpenAI component also drives any OpenAI-compatible backend. Change the endpoint and the API key, keep the code.

Azure OpenAI Groq Together LM Studio vLLM llama.cpp server

Vector storage is covered too, with embeddings written to a local file store or to Pinecone. See embeddings, vector databases and Pinecone.

Ten lines of Delphi, tokens on screen

Create the component, set the key, hook the event. Every delta arrives in OnHTTPAPISSE as the model produces it.

uses
  sgcHTTP_API_Anthropic;

procedure TForm1.Ask;
begin
  FClaude := TsgcHTTP_API_Anthropic.Create(nil);
  FClaude.AnthropicOptions.ApiKey := 'sk-ant-...';
  FClaude.AnthropicOptions.AnthropicVersion := '2023-06-01';
  FClaude.OnHTTPAPISSE := OnDelta;

  FClaude._CreateMessageStream('claude-3-5-sonnet-latest',
    'Summarise order 10248 for the customer.', 1024);
end;

procedure TForm1.OnDelta(Sender: TObject; const aEvent, aData: string;
  var Cancel: Boolean);
begin
  Memo1.Text := Memo1.Text + aData;
end;
using esegece.sgcWebSockets;

var claude = new TsgcHTTPAPI_Anthropic();
claude.AnthropicOptions.ApiKey = "sk-ant-...";
claude.AnthropicOptions.AnthropicVersion = "2023-06-01";

// every server-sent delta lands here as it is produced
claude.OnHTTPAPISSE += (sender, ev, data, cancel) => Console.Write(data);

claude._CreateMessageStream("claude-3-5-sonnet-latest",
    "Summarise order 10248 for the customer.", 1024);

What you get in the box

  • Streaming. Token-by-token deltas over Server-Sent Events, on every provider.
  • Function calling and tools. Typed request classes such as TsgcAnthropicClass_Request_Tool, no hand-rolled JSON.
  • Embeddings and RAG. TsgcAIOpenAIEmbeddings writes vectors to a local file store or to Pinecone, then queries the nearest neighbour.
  • Vision. Send images to the providers that support them, including Claude, Gemini, Grok, DeepSeek and Mistral.
  • Token counting. Gemini's CountTokens estimates the cost of a prompt before you send it.
  • Production plumbing. CircuitBreaker, ReadTimeout and TLSOptions on every AI component, plus OnHTTPAPIException.

Your business logic, callable by an agent

MCP is the open protocol that lets an AI host discover and call tools. Expose a Pascal method as a tool, and Claude Desktop or your own agent can invoke it, with your code deciding the answer.

  1. Expose a tool Call Tools.AddTool('GetOrder', 'Return an order by id') and declare its arguments with InputSchema.Properties.AddProperty.
  2. Register the server Attach TsgcWSAPIServer_MCP to an sgcWebSockets HTTP server, set the endpoint to /mcp, go active.
  3. The agent calls it The AI host lists your tools, picks GetOrder, and sends the arguments it inferred from the conversation.
  4. Your code answers OnMCPRequestTool fires with a typed request, you fill the response, and the model reads your data as context.

Both sides of the protocol are included. TsgcWSAPIServer_MCP turns your application into a tool provider, and TsgcWSAPIClient_MCP lets your application consume any MCP-compatible server, calling its tools, prompts and resources. Both components are part of the Enterprise edition. Read the MCP overview.

Why native beats a Python sidecar

Bolting a Python service onto a Delphi application means two runtimes, two deployment stories and two sets of bugs. These components compile into your executable.

One binary to deploy

The AI client is a non-visual component linked into your application. There is no sidecar process to start, supervise or restart, and no localhost port to protect.

No interpreter to ship

Nothing to pip install on the customer's machine, no virtual environment, no version pinning. Compiled native code, exactly like the rest of your application.

The same TLS stack

AI calls travel over the library's own HTTP layer, so they reuse the OpenSSL and SChannel configuration, the TLS options and the timeouts you already set for everything else.

Every target you already ship

Delphi 7 through RAD Studio 13, plus .NET Framework 2.0, .NET Core, .NET Standard and .NET 5 through .NET 9. Windows, macOS, Linux, iOS and Android.

Six libraries, one subscription

The AI components are one part of the stack. Everything below is built by the same team, in the same style, with full source.

sgcWebSockets

WebSocket, HTTP/2, MQTT, WebRTC, AI and MCP, plus 30+ API integrations. The library that carries this page.

Learn more →

sgcHTML

Build the web UI for your agent in Delphi or .NET. Server-side HTML components, real-time WebSocket updates, htmx interactivity.

Learn more →

sgcOpenAPI

OpenAPI 3.x parser, Pascal SDK generator and server, plus 1,195+ pre-built SDKs. Turn any REST API into a tool your agent can call.

Learn more →

sgcSign

Document signatures (XAdES, PAdES, CAdES, ASiC) and code signing (Authenticode, ClickOnce, NuGet, VSIX), by library or by sgcSign Server.

Learn more →

sgcBiometrics

Windows Hello, fingerprint sensors and facial recognition for Delphi and C++ Builder, on the Windows Biometric Framework.

Learn more →

sgcIndy

Enhanced Indy TCP/IP component suite with extended protocol support and performance work for enterprise applications.

Learn more →

Every product is covered by the All-Access bundle, and every product starts with the same free trial.

What developers say

Trusted by Delphi, C++ Builder, Lazarus and .NET developers building real-time and AI-powered applications around the world.

Your sgcWebSockets library is very useful and easy to setup. Keep up the good work!
Simone Moretti Delphi Developer
sgcWebSockets is amazing and your support is the best!
Christian Meyer Founder & CTO
Thanks so much for your help and support — I love your components.
Mark Steinfeld CTO

You are seeing the AI & Agents view of eSeGeCe.

Show me another angle →
30-Day Money-Back GuaranteeNot satisfied? Request a full refund within 30 days of purchase. See refund policy

Make your application AI-native this week

Drop in the component, set your API key, stream your first answer. Full source, royalty-free deployment, and the whole eSeGeCe stack behind it.