4D AIKit: Structured Outputs
When using AI in your application, you often need outputs that your code can parse, not just free-form text. Whether you’re generating data for a user interface, automating business logic, or orchestrating multi-step reasoning, predictable, machine-readable responses are essential.
That’s why 4D 21’s 4D AIKit introduces the new response_format attribute, letting you define the exact structure of the model’s output to ensure consistency, validation, and smooth integration into your app logic.
Edit and Manage Component Code Directly in the host project from the 4D Explorer
In 4D 20 R9, we introduced the ability to edit and debug component methods and classes directly from a host project. Start with 4D 21, we’re now going further by making 4D Explorer the central hub for editing both project and component code. What’s for you: work better, work faster, with your components.
4D NetKit: Simplifying OAuth 2.0 Redirects after authentication
4D NetKit just made redirecting users after OAuth 2.0 authentication easier with 4D 21. The OAuth2Provider class in 4D NetKit now allows real URLs for authenticationPage and authenticationErrorPage. This means you now have more redirection options after authentication, like a Qodly pages or HTTP Handlers. Whether the authentication succeeds or fails, you stay in control of the user experience with smooth, flexible redirection options.
Track, Audit, Optimize: Take Control of Your 4D Web Sessions
Since the introduction of scalable sessions, server-side session management has become an important component of modern 4D architectures. These sessions enable fine-tuned scalability for web applications, but also require stricter supervision to guarantee performance, stability, and license control. With 4D 21, you now have a comprehensive means of inspecting all open web sessions, whether they originate from REST connections, SOAP calls, or 4DACTION requests.
HTTPS Requests Now Support Windows Certificate Store
Starting with 4D 21, your HTTPS requests can now use a certificate stored in the Windows Certificate Store instead of one saved on disk. This is particularly useful when the client-side of HTTPS requests needs to use local certificates.
Semantic search: querying by vector similarity
With the growing importance of vector-based search in AI applications such as semantic search, recommendation engines, and natural language processing, 4D introduces native support for vector queries in the query() function. This enhancement brings vector similarity comparisons directly into the language of DataClass.query() and EntitySelection.query().
Take Control of Standard 4D Components
As a 4D developer, you often want full control over what gets included in your projects. Starting with 4D 21, you can now decide which components provided by 4D are part of your application.
4D 21 and AI Kit: Redefining how applications Think and Act
With 4D 21, AI takes a giant leap forward. At the heart of this evolution is AI Kit’s tool calling, a massive addition that transforms the way you integrate AI into your applications.
Tool calling allows you to extend the model’s capabilities by registering your own methods or functions, which the AI can call automatically when relevant. This means that instead of manually handling every interaction, the chat helper automatically invokes your handlers, giving you both flexibility and control.
Search by Meaning, Not Metadata: Semantic Image Filtering with 4D.Vector
Your users don’t think in filenames or folder hierarchies. They think in ideas.
- “A robot painted in watercolor.”
- “A sunny beach filled with color.”
- “Something that feels like Mona Lisa… but from the future.”
It doesn’t matter if that idea comes from an image, a customer order, an email, or a 4D Write Pro document — the challenge is the same: how do you deliver results that match intent, not just keywords?
With 4D.Vector and 4D AI Kit, your application can finally make sense of meaning. In this post, we’ll illustrate it with semantic image similarity search. And here’s the key: we’re not really working with raw images at all — we’re working with their descriptions. The very same approach works for any kind of text data in your application.
UUID Improvements and Sorting with Version 7
Starting with 4D 20 R10, UUIDs are now generated directly using an internal algorithm instead of relying on system functions—giving you better control over their format and behavior. And with this update, you can now opt for version 7 UUIDs, which support chronological sorting. Let’s explore what this means for your applications.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy
