Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devoxx Greece - Build your own Java-powered Age...

Avatar for Kevin Dubois Kevin Dubois
April 24, 2026
28

Devoxx Greece - Build your own Java-powered Agentic Apps

Avatar for Kevin Dubois

Kevin Dubois

April 24, 2026

More Decks by Kevin Dubois

Transcript

  1. It all starts with a single AI Service A Large

    Language Model is at the core of any AI-Infused Application … but this is not enough. Application LLM
  2. It all starts with a single AI Service LLM Application

    A Large Language Model is at the core of any AI-Infused Application … but this is not enough. You also need: - Well crafted prompts guiding the LLM in the most precise and least ambiguous possible ways Prompts
  3. It all starts with a single AI Service LLM Application

    A Large Language Model is at the core of any AI-Infused Application … but this is not enough. You also need: - Well crafted prompts guiding the LLM in the most precise and least ambiguous possible ways - A chat memory to "remember" previous interactions and make the AI service conversational Prompts Memory
  4. It all starts with a single AI Service LLM Application

    A Large Language Model is at the core of any AI-Infused Application … but this is not enough. You also need: - Well crafted prompts guiding the LLM in the most precise and least ambiguous possible ways - A chat memory to "remember" previous interactions and make the AI service conversational - Data/Knowledge sources to provide contextual information (RAG) and persist the LLM state Prompts Memory Data Sources
  5. It all starts with a single AI Service LLM Application

    A Large Language Model is at the core of any AI-Infused Application … but this is not enough. You also need: - Well crafted prompts guiding the LLM in the most precise and least ambiguous possible ways - A chat memory to "remember" previous interactions and make the AI service conversational - Data/Knowledge sources to provide contextual information (RAG) and persist the LLM state - External tools (function calling) expanding LLM capabilities and take responsibility for deterministic tasks where generative AI falls short Prompts Memory Tools Data Sources
  6. Guardrails It all starts with a single AI Service LLM

    Application A Large Language Model is at the core of any AI-Infused Application … but this is not enough. You also need: - Well crafted prompts guiding the LLM in the most precise and least ambiguous possible ways - A chat memory to "remember" previous interactions and make the AI service conversational - Data/Knowledge sources to provide contextual information (RAG) and persist the LLM state - External tools (function calling) expanding LLM capabilities and take responsibility for deterministic tasks where generative AI falls short - Guardrails to prevent malicious input and block wrong or unacceptable responses Prompts Memory Tools Data Sources
  7. From a single AI service to Agentic Systems Application 1

    AI Service, 1 Model x AI Services, y Models, z Agents
  8. UI Rental Returns API Cleaning Agent Cleaning Tool Car Management

    Resource Car Management Service Step 01 - Implementing your first AI Agent
  9. From single AI Service to Agents and Agentic Systems In

    essence what makes an AI service also an Agent is the capability to collaborate with other Agents in order to perform more complex tasks and pursue a common goal
  10. Programmatic Orchestration of Agents 4 basic patterns that can be

    used as building blocks to create more complex interactions - Sequence / Prompt chaining - Loop / Reflection - Parallelization - Conditional / Routing
  11. UI Rental Returns API Cleaning Agent Cleaning Tool Car Management

    Resource Car Management Service Car Condition Feedback Agent Sequence Agent Step 02 - Creating Simple Agentic Workflows
  12. UI Rental Returns API Cleaning Tool Car Management Resource Car

    Management Service Car Condition Feedback Agent Conditional Agent Cleaning Feedback Agent Maintenance Feedback Agent Parallel Agent Cleaning Agent Maintenance Agent Maintenance Tool Sequence Agent Step 03 - Composing Multiple Agentic Workflows
  13. From Programmatic AI Orchestration to Autonomous AI LLMs and tools

    are programmatically orchestrated through predefined code paths and workflows LLMs dynamically direct their own processes and tool usage, maintaining control over how they execute tasks Workflow Agents
  14. Input Response Supervisor Agent A Agent B Agent C Agent

    result + State Determine if done or next invocation Pool of agents Done Select and invoke (Agent Invocation) Autonomous Agentic AI – The Supervisor Pattern
  15. Autonomous Agentic AI – The Supervisor Pattern Input Response Planner

    Agent A Agent B Agent C Agent result Agentic Scope (Invocations +results) Pool of agents Done? Response Scorer Response Strategy State Scores Last, Score, Summary Input, response, action summary
  16. Custom Agentic Patterns - When one size does not fit

    all Pluggable Planner Workflow Supervisor GOAP P2P … Execution Layer Action Result State Agentic Scope Request Invoke Customizable by the framework (Quarkus) Agent A Agent B Agent C
  17. UI Rental Returns API Car Management Resource Step 04 -

    Supervisor Pattern for Autonomous Orchestration Car Management Service Cleaning Feedback Agent Maintenance Feedback Agent Parallel Agent Cleaning Agent Maintenance Agent Maintenance Tool Disposition Feedback Agent Pricing Agent Disposition Agent Fleet Supervisor Agent Cleaning Tool Car Condition Feedback Agent Sequence Agent
  18. UI Rental Returns API Car Management Resource Step 05 -

    Human-in-the-Loop Pattern Car Management Service Cleaning Feedback Agent Maintenance Feedback Agent Parallel Agent Cleaning Agent Maintenance Agent Maintenance Tool Disposition Feedback Agent Pricing Agent Disposition Agent Fleet Supervisor Agent Human Approval Agent Human Input API Cleaning Tool Car Condition Feedback Agent Sequence Agent
  19. UI Rental Returns API Car Management Resource Step 06 -

    Multimodal Agents Car Management Service Cleaning Feedback Agent Maintenance Feedback Agent Parallel Agent Cleaning Agent Maintenance Agent Maintenance Tool Disposition Feedback Agent Pricing Agent Disposition Agent Fleet Supervisor Agent Human Approval Agent Human Input API Car Image Analysis Agent (optional) Cleaning Tool Car Condition Feedback Agent Sequence Agent
  20. UI Rental Returns API Car Management Resource Step 07 -

    Using Remote Agents (A2A) Cleaning Tool Car Management Service Car Condition Feedback Agent Cleaning Feedback Agent Maintenance Feedback Agent Parallel Agent Cleaning Agent Maintenance Agent Maintenance Tool Disposition Feedback Agent Pricing Agent Disposition A2A Client Fleet Supervisor Agent Human Approval Agent Human Input API Car Image Analysis Agent (optional) Disposition Agent (A2A) Sequence Agent
  21. What did we see and didn’t see? From AI-infused to

    Agentic AI https://docs.langchain4j.dev/ tutorials/agents https://docs.quarkiverse.io/ quarkus-langchain4j Langchain4J Quarkus DECLARATIVE API MEMORY Workflow SUPERVISOR CONTEXT MCP FUNCTION CALLING Agentic MODELS OBSERVABILITY RESILIENCE agent State Scope A2A PROGRAMMATIC AGENT HUMAN-IN-THE-LOOP PlanNer SPI Workflow SPI