Talk to a model, or let one talk back
TsgcAIChat is the unified client. Set Provider, set ChatOptions.ApiKey and ChatOptions.Model, call Chat. Token streaming arrives on OnChatStream with a Cancel flag, and ChatAsync returns a future on Delphi 2010 and later so the UI thread never blocks. New in 2026.10, TsgcAIDocumentExtractor turns a PDF or an image into JSON validated against your schema, with a confidence per field. Also new, TsgcAIVoiceAgent is a realtime voice agent over OpenAI Realtime or Gemini Live that listens, talks back, lets the user interrupt and calls your tools. The other three wrap complete conversation loops, including the voice ones.