Skip to content

feat(api): add AI Agent worker type with LangChain4j integration#246

Merged
treblereel merged 1 commit into
casehubio:mainfrom
treblereel:issue_244
May 12, 2026
Merged

feat(api): add AI Agent worker type with LangChain4j integration#246
treblereel merged 1 commit into
casehubio:mainfrom
treblereel:issue_244

Conversation

@treblereel
Copy link
Copy Markdown
Collaborator

Introduces Agent as a third worker function type alongside Workflow and Function. Agents use LangChain4j models to execute AI-powered tasks with JQ-based input/output transformation.

Key components:

  • Agent class with JQ transformers for data mapping
  • ChatModelProvider SPI with 5 implementations (OpenAI, Ollama, Anthropic, Mistral AI, Google AI Gemini)
  • Reflection-based provider loading avoids compile-time vendor SDK dependencies
  • Integration with QuartzWorkerExecutionJob execution layer
  • WorkerExecutionContext thread-local propagation
  • Timeout enforcement via CompletableFuture

Testing:

  • 7 comprehensive tests covering Agent execution, timeout handling, provider loading
  • AgentWorkerExecutionTest (E2E integration test)
  • AgentExecutionTest (Quartz job execution test)

Also translates EVENT_LOG_API.md from Russian to English.

Closes #244

Introduces Agent as a third worker function type alongside Workflow and
Function. Agents use LangChain4j models to execute AI-powered tasks with
JQ-based input/output transformation.

Key components:
- Agent class with JQ transformers for data mapping
- ChatModelProvider SPI with 5 implementations (OpenAI, Ollama, Anthropic,
  Mistral AI, Google AI Gemini)
- Reflection-based provider loading avoids compile-time vendor SDK dependencies
- Integration with QuartzWorkerExecutionJob execution layer
- WorkerExecutionContext thread-local propagation
- Timeout enforcement via CompletableFuture

Testing:
- 7 comprehensive tests covering Agent execution, timeout handling, provider loading
- AgentWorkerExecutionTest (E2E integration test)
- AgentExecutionTest (Quartz job execution test)

Also translates EVENT_LOG_API.md from Russian to English.

Closes casehubio#244
@treblereel treblereel self-assigned this May 12, 2026
@treblereel treblereel added the enhancement New feature or request label May 12, 2026
@treblereel treblereel added this to the v0.2 milestone May 12, 2026
@treblereel treblereel merged commit df28c72 into casehubio:main May 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AI Agent support as Worker execution type

1 participant