Tool Use (Function Calling)
Claude can call functions you define, enabling your Delphi app to act as an AI-powered orchestrator. For example, a Delphi desktop app can expose its business logic (database queries, calculations, file operations) as tools — Claude decides when to call them based on natural language input. This turns any Delphi application into an AI agent without rewriting your existing code.
Extended Thinking
Claude can show its chain-of-thought reasoning before answering. For Delphi developers building decision-support or diagnostic tools, this means you can display why Claude reached a conclusion — critical in fields like finance, medical, or engineering where transparency matters. You get both the reasoning trace and the final answer in a single API call.
Streaming Responses
The Anthropic API supports server-sent events (SSE) streaming, which the sgcWebSockets library already has native support for (TsgcHTTPComponentClient, SSE classes). Instead of waiting for a complete response, your Delphi UI can display tokens as they arrive — giving users a responsive, ChatGPT-like experience in a native VCL/FMX application with no browser dependency.