Generate code with JNW Toolkit
To reduce the amount of boilerplate code required to write Task Processors for the Java Native Worker (JNW), JNW Toolkit (or jnw-toolkit) offers several annotation processors. The article provides basic instructions on using them in a project.
Generate Worker application from archetype
Overview
Java Native Worker
The Java native mechanism enables you to write and deploy custom pure Java-based Workers with any libraries without additional loading or linking.
JNW Toolkit overview
JNW Toolkit is a collection of libraries that simplify development with the Java Native Worker (JNW). Each library can be used independently and implements some specific feature that can be used when needed and ignored when it is not.
Migrate AI Agent project based on ODF 2 to JNW
The article delves into the technical specifics of migrating an AI Agent project built with the ODF 2 framework to the solution offered by the Java Native Worker (JNW).
Secrets Vault API
Secrets Vault API enables credentials management.
Split and join Transactions
JNW Toolkit allows splitting a record into multiple sub-records and joining them back. This is usually done to process some data in parallel.
Test JNW-based tasks
The worker-task-test library is a task-testing framework based on the Java Native Worker (JNW) approach. The library provides functions to configure and run tasks with different types of input data (for example, empty input or with single and multiple rows) or execute a chain of tasks and contains a convenient assertion mechanism.
Use ODF 2 Data Stores in Java Native Worker
If your project is based on the ODF 2 framework, it uses automatically named Data Stores. Names of those Data Stores are created using the pattern that contains the code and version of the AI Agent to which they belong. The approach allows having multiple versions of the same AI Agent to run on the same Control Tower without interference and to avoid potential conflicts with Data Stores of other AI Agents.
Work with Data Stores in JNW Toolkit
JNW Toolkit contains three Maven modules that providу functionality for working with Data Stores.